Preparing report...

Report for github.com/prizem-io/api

A+    Excellent!    Found 4 issues across 13 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo92%

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.

    • api/v1/convert/attributes.go
    • Line 14: warning: cyclomatic complexity 43 of function EncodeAttributes() is high (> 15) (gocyclo)
    • Line 178: warning: cyclomatic complexity 16 of function DecodeAttributes() is high (> 15) (gocyclo)

golint76%

Golint is a linter for Go source code.

    • api/v1/convert/endpoints_encode.go
    • Line 12: warning: exported function EncodeNodes should have comment or be unexported (golint)
    • Line 24: warning: exported function EncodeNode should have comment or be unexported (golint)
    • Line 35: warning: exported function EncodeServiceInstances should have comment or be unexported (golint)
    • Line 58: warning: exported function EncodeContainer should have comment or be unexported (golint)
    • Line 69: warning: exported function EncodePorts should have comment or be unexported (golint)
    • api/v1/convert/routes_decode.go
    • Line 12: warning: exported function DecodeServices should have comment or be unexported (golint)
    • Line 35: warning: exported function DecodeVersion should have comment or be unexported (golint)
    • Line 46: warning: exported function DecodeOperations should have comment or be unexported (golint)
    • Line 63: warning: exported function DecodeRoutingRules should have comment or be unexported (golint)
    • Line 73: warning: exported function DecodeRetry should have comment or be unexported (golint)
    • Line 85: warning: exported function DecodeConfigurations should have comment or be unexported (golint)
    • Line 100: warning: exported function DecodeHealthCheck should have comment or be unexported (golint)
    • api/v1/convert/routes_encode.go
    • Line 14: warning: exported function EncodeServices should have comment or be unexported (golint)
    • Line 37: warning: exported function EncodeVersion should have comment or be unexported (golint)
    • Line 48: warning: exported function EncodeOperations should have comment or be unexported (golint)
    • Line 65: warning: exported function EncodeRoutingRules should have comment or be unexported (golint)
    • Line 75: warning: exported function EncodeRetry should have comment or be unexported (golint)
    • Line 87: warning: exported function EncodeConfigurations should have comment or be unexported (golint)
    • Line 102: warning: exported function EncodeHealthCheck should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!