Preparing report...

Report for github.com/lcd1232/zenrpc

(v1.1.1)

A+    Excellent!    Found 6 issues across 14 files

Tweet

gofmt92%

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!


gocyclo85%

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.

    • parser/struct.go
    • Line 34: warning: cyclomatic complexity 32 of function (*Struct).parse() is high (> 15) (gocyclo)
    • parser/parser.go
    • Line 450: warning: cyclomatic complexity 17 of function (*Method).parseReturns() is high (> 15) (gocyclo)
    • Line 377: warning: cyclomatic complexity 16 of function (*Method).parseArguments() is high (> 15) (gocyclo)

golint71%

Golint is a linter for Go source code.

    • smd/model.go
    • Line 6: warning: exported const String should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported type JSONSchema should have comment or be unexported (golint)
    • Line 77: warning: exported type Property should have comment or be unexported (golint)
    • Line 85: warning: exported type Definition should have comment or be unexported (golint)
    • Line 90: warning: exported type ServiceInfo should have comment or be unexported (golint)
    • parser/parser.go
    • Line 18: warning: exported const GenerateFileSuffix should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type Service should have comment or be unexported (golint)
    • Line 51: warning: exported type Method should have comment or be unexported (golint)
    • Line 65: warning: exported type DefaultValue should have comment or be unexported (golint)
    • Line 73: warning: exported type Arg should have comment or be unexported (golint)
    • Line 84: warning: exported type Return should have comment or be unexported (golint)
    • Line 89: warning: exported type SMDReturn should have comment or be unexported (golint)
    • Line 96: warning: exported type Struct should have comment or be unexported (golint)
    • Line 104: warning: exported type Property should have comment or be unexported (golint)
    • Line 117: warning: exported type SMDError should have comment or be unexported (golint)
    • Line 122: warning: exported function NewPackageInfo should have comment or be unexported (golint)
    • Line 135: warning: comment on exported method PackageInfo.Parse should be of the form "Parse ..." (golint)
    • Line 139: 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)
    • handlers.go
    • Line 13: warning: exported type Printer should have comment or be unexported (golint)
    • server.go
    • Line 32: warning: comment on exported const IDKey should be of the form "IDKey ..." (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!