Preparing report...

Report for github.com/go-gem/gem

A+    Excellent!    Found 11 issues across 24 files

Tweet

gofmt91%

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!


golint83%

Golint is a linter for Go source code.

    • gem/application.go
    • Line 20: warning: comment on exported function NewApplication should be of the form "NewApplication ..." (golint)
    • Line 58: warning: exported type Application should have comment or be unexported (golint)
    • gem/options.go
    • Line 7: warning: exported type ServerOption should have comment or be unexported (golint)
    • Line 13: warning: exported type AssetsOption should have comment or be unexported (golint)
    • Line 19: warning: exported type TemplatesOption should have comment or be unexported (golint)
    • gem/templates.go
    • Line 62: warning: comment on exported method Templates.Layout should be of the form "Layout ..." (golint)

gocyclo79%

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.

    • gem/tree.go
    • Line 471: warning: cyclomatic complexity 47 of function (*node).findCaseInsensitivePathRec() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 32 of function (*node).getValue() is high (> 15) (gocyclo)
    • Line 82: warning: cyclomatic complexity 26 of function (*node).addRoute() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 18 of function (*node).insertChild() is high (> 15) (gocyclo)
    • gem/path.go
    • Line 21: warning: cyclomatic complexity 27 of function CleanPath() is high (> 15) (gocyclo)
    • gem/router.go
    • Line 247: warning: cyclomatic complexity 20 of function (*Router).handle() is high (> 15) (gocyclo)
    • gem/tree_test.go
    • Line 484: warning: cyclomatic complexity 19 of function TestTreeFindCaseInsensitivePath() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!