Preparing report...

Report for github.com/jimdn/restful

A+    Excellent!    Found 6 issues across 12 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!


gocyclo75%

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.

    • restful/processor.go
    • Line 511: warning: cyclomatic complexity 54 of function (*Processor).defaultGetPage() is high (> 15) (gocyclo)
    • Line 78: warning: cyclomatic complexity 23 of function (*Processor).Init() is high (> 15) (gocyclo)
    • Line 363: warning: cyclomatic complexity 16 of function (*Processor).defaultPatch() is high (> 15) (gocyclo)
    • restful/field.go
    • Line 589: warning: cyclomatic complexity 28 of function (*FieldSet).BuildOrObj() is high (> 15) (gocyclo)
    • Line 427: warning: cyclomatic complexity 21 of function (*FieldSet).BuildRangeObj() is high (> 15) (gocyclo)
    • Line 894: warning: cyclomatic complexity 21 of function ParseKindValue() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 18 of function (*FieldSet).check() is high (> 15) (gocyclo)
    • Line 373: warning: cyclomatic complexity 18 of function (*FieldSet).BuildFilterObj() is high (> 15) (gocyclo)
    • Line 95: warning: cyclomatic complexity 18 of function parseKind() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • restful/examples/full.go
    • Line 13: warning: comment on exported type Movie should be of the form "Movie ..." (with optional leading article) (golint)
    • Line 28: warning: exported type Comment should have comment or be unexported (golint)
    • restful/examples/search.go
    • Line 13: warning: comment on exported type Teacher should be of the form "Teacher ..." (with optional leading article) (golint)
    • Line 24: warning: exported type Student should have comment or be unexported (golint)
    • restful/examples/simple.go
    • Line 13: warning: comment on exported type Teacher should be of the form "Teacher ..." (with optional leading article) (golint)
    • Line 24: warning: exported type Student should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!