Preparing report...

Report for github.com/myrteametrics/myrtea-engine-api

A+    Excellent!    Found 36 issues across 208 files

Tweet

gofmt99%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo89%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • myrtea-engine-api/internals/search/query_test.go
    • Line 295: warning: cyclomatic complexity 22 of function TestSearchDownSamplingLatest() is high (> 15) (gocyclo)
    • Line 428: warning: cyclomatic complexity 22 of function TestSearchDownSamplingFirst() is high (> 15) (gocyclo)
    • Line 49: warning: cyclomatic complexity 21 of function TestSearch() is high (> 15) (gocyclo)
    • Line 168: warning: cyclomatic complexity 20 of function TestSearchDownSamplingAVG() is high (> 15) (gocyclo)
    • myrtea-engine-api/internals/search/utils.go
    • Line 251: warning: cyclomatic complexity 28 of function aggregate() is high (> 15) (gocyclo)
    • Line 63: warning: cyclomatic complexity 22 of function extractMetaData() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 21 of function extractParameters() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 21 of function extractExpressionFacts() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • myrtea-engine-api/plugins/assistant/grpc.go
    • Line 10: warning: exported type AssistantGRPCPlugin should have comment or be unexported (golint)
    • Line 17: warning: exported method AssistantGRPCPlugin.GRPCServer should have comment or be unexported (golint)
    • Line 22: warning: exported method AssistantGRPCPlugin.GRPCClient should have comment or be unexported (golint)
    • Line 31: warning: exported method GRPCClient.SentenceProcess should have comment or be unexported (golint)
    • Line 50: warning: exported type GRPCServer should have comment or be unexported (golint)
    • Line 55: warning: exported method GRPCServer.SentenceProcess should have comment or be unexported (golint)
    • myrtea-engine-api/plugins/assistant/plugin.go
    • Line 24: warning: exported type AssistantPlugin should have comment or be unexported (golint)
    • Line 31: warning: exported function NewAssistantPlugin should have comment or be unexported (golint)
    • Line 58: warning: exported method AssistantPlugin.HandlerPrefix should have comment or be unexported (golint)
    • Line 62: warning: exported method AssistantPlugin.Stop should have comment or be unexported (golint)
    • Line 67: warning: exported method AssistantPlugin.Start should have comment or be unexported (golint)
    • Line 89: warning: exported method AssistantPlugin.Test should have comment or be unexported (golint)
    • myrtea-engine-api/plugins/baseline/grpc.go
    • Line 14: warning: exported type BaselineGRPCPlugin should have comment or be unexported (golint)
    • Line 21: warning: exported method BaselineGRPCPlugin.GRPCServer should have comment or be unexported (golint)
    • Line 26: warning: exported method BaselineGRPCPlugin.GRPCClient should have comment or be unexported (golint)
    • Line 35: warning: exported method GRPCClient.GetBaselineValues should have comment or be unexported (golint)
    • Line 70: warning: exported type GRPCServer should have comment or be unexported (golint)
    • Line 75: warning: exported method GRPCServer.GetBaselineValues should have comment or be unexported (golint)
    • myrtea-engine-api/plugins/baseline/plugin.go
    • Line 33: warning: exported function Register should have comment or be unexported (golint)
    • Line 51: warning: exported type BaselinePlugin should have comment or be unexported (golint)
    • Line 58: warning: exported function NewBaselinePlugin should have comment or be unexported (golint)
    • Line 85: warning: exported method BaselinePlugin.HandlerPrefix should have comment or be unexported (golint)
    • Line 89: warning: exported method BaselinePlugin.Stop should have comment or be unexported (golint)
    • Line 94: warning: exported method BaselinePlugin.Start should have comment or be unexported (golint)
    • Line 118: warning: exported method BaselinePlugin.Test should have comment or be unexported (golint)
    • Line 127: warning: exported method BaselinePlugin.Handler should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!