Preparing report...

Report for github.com/ecadlabs/signatory

A+    Excellent!    Found 16 issues across 42 files

Tweet

gofmt95%

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!


gocyclo90%

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.

    • signatory/pkg/tezos/message.go
    • Line 208: warning: cyclomatic complexity 82 of function parseOperation() is high (> 15) (gocyclo)
    • Line 747: warning: cyclomatic complexity 24 of function parseBlockHeader() is high (> 15) (gocyclo)
    • signatory/pkg/utils/utils.go
    • Line 17: warning: cyclomatic complexity 18 of function readString() is high (> 15) (gocyclo)
    • Line 84: warning: cyclomatic complexity 18 of function ParseMap() is high (> 15) (gocyclo)

golint78%

Golint is a linter for Go source code.

    • signatory/pkg/errors/errors.go
    • Line 7: warning: exported type HTTPError should have comment or be unexported (golint)
    • Line 19: warning: exported function Wrap should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • signatory/pkg/utils/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 11: warning: exported method Options.GetString should have comment or be unexported (golint)
    • Line 39: warning: exported method Options.GetInt should have comment or be unexported (golint)
    • Line 53: warning: exported method Options.GetBool should have comment or be unexported (golint)
    • signatory/pkg/server/server.go
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words