Preparing report...

Report for github.com/CityOfZion/neo-go

A+    Excellent!    Found 31 issues across 582 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!


gocyclo94%

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.

    • neo-go/pkg/smartcontract/parameter.go
    • Line 286: warning: cyclomatic complexity 28 of function (Parameter).TryParse() is high (> 15) (gocyclo)
    • Line 101: warning: cyclomatic complexity 24 of function (*Parameter).UnmarshalJSON() is high (> 15) (gocyclo)
    • Line 382: warning: cyclomatic complexity 19 of function NewParameterFromString() is high (> 15) (gocyclo)
    • neo-go/pkg/services/notary/notary.go
    • Line 151: warning: cyclomatic complexity 32 of function (*Notary).OnNewRequest() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 21 of function (*Notary).verifyIncompleteWitnesses() is high (> 15) (gocyclo)
    • neo-go/cli/wallet/nep17.go
    • Line 133: warning: cyclomatic complexity 21 of function getNEP17Balance() is high (> 15) (gocyclo)
    • Line 483: warning: cyclomatic complexity 17 of function transferNEP() is high (> 15) (gocyclo)
    • Line 396: warning: cyclomatic complexity 16 of function multiTransferNEP17() is high (> 15) (gocyclo)
    • neo-go/pkg/compiler/codegen.go
    • Line 506: warning: cyclomatic complexity 167 of function (*codegen).Visit() is high (> 15) (gocyclo)
    • Line 1886: warning: cyclomatic complexity 28 of function convertToken() is high (> 15) (gocyclo)
    • Line 1616: warning: cyclomatic complexity 26 of function (*codegen).convertBuiltin() is high (> 15) (gocyclo)
    • Line 409: warning: cyclomatic complexity 23 of function (*codegen).convertFuncDecl() is high (> 15) (gocyclo)
    • Line 2079: warning: cyclomatic complexity 19 of function (*codegen).writeJumps() is high (> 15) (gocyclo)
    • neo-go/pkg/network/server.go
    • Line 980: warning: cyclomatic complexity 24 of function (*Server).handleMessage() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 19 of function newServerFromConstructors() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 18 of function (*Server).run() is high (> 15) (gocyclo)
    • Line 1099: warning: cyclomatic complexity 16 of function (*Server).iteratePeersWithSendMsg() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


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!


misspell99%

Misspell Finds commonly misspelled English words