Preparing report...

Report for github.com/askm3/routebuilder

(v1.2.1)

B    Not bad!    Found 7 issues across 9 files

Tweet

gofmt55%

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!


gocyclo100%

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.

No problems detected. Good job!


golint33%

Golint is a linter for Go source code.

    • routebuilder/multi.go
    • Line 8: warning: exported type Multi should have comment or be unexported (golint)
    • Line 13: warning: exported type MultiBuilder should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMulti should have comment or be unexported (golint)
    • Line 24: warning: exported method Multi.AddRoute should have comment or be unexported (golint)
    • Line 33: warning: exported method Multi.Done should have comment or be unexported (golint)
    • Line 37: warning: exported method Multi.Add should have comment or be unexported (golint)
    • Line 45: warning: exported method MultiBuilder.PathWithMethods should have comment or be unexported (golint)
    • Line 51: warning: exported method MultiBuilder.HandleFunc should have comment or be unexported (golint)
    • routebuilder/parentBuilder.go
    • Line 10: warning: exported type Parent should have comment or be unexported (golint)
    • Line 18: warning: exported function WithParent should have comment or be unexported (golint)
    • Line 22: warning: exported method Parent.Middleware should have comment or be unexported (golint)
    • Line 32: warning: exported method Parent.Routes should have comment or be unexported (golint)
    • Line 36: warning: exported method Parent.Get should have comment or be unexported (golint)
    • Line 41: warning: exported method Parent.Post should have comment or be unexported (golint)
    • Line 46: warning: exported method Parent.Put should have comment or be unexported (golint)
    • Line 51: warning: exported method Parent.Patch should have comment or be unexported (golint)
    • Line 56: warning: exported method Parent.Delete should have comment or be unexported (golint)
    • Line 61: warning: exported method Parent.Head should have comment or be unexported (golint)
    • Line 66: warning: exported method Parent.Options should have comment or be unexported (golint)
    • Line 71: warning: exported method Parent.Connect should have comment or be unexported (golint)
    • routebuilder/routebuilder.go
    • Line 8: warning: exported type Method should have comment or be unexported (golint)
    • Line 9: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 12: warning: exported const GET should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Route should have comment or be unexported (golint)
    • Line 28: warning: exported method Route.GetHandler should have comment or be unexported (golint)
    • Line 32: warning: exported method Route.GetPath should have comment or be unexported (golint)
    • Line 36: warning: exported method Route.GetMethod should have comment or be unexported (golint)
    • Line 40: warning: exported method Route.GetMethods should have comment or be unexported (golint)
    • Line 44: warning: exported type Builder should have comment or be unexported (golint)
    • Line 51: warning: exported function New should have comment or be unexported (golint)
    • Line 55: warning: exported method Builder.Path should have comment or be unexported (golint)
    • Line 60: warning: exported method Builder.Handler should have comment or be unexported (golint)
    • Line 65: warning: exported method Builder.Middleware should have comment or be unexported (golint)
    • Line 73: warning: exported method Builder.Build should have comment or be unexported (golint)
    • routebuilder/middleware/audit.go
    • Line 9: warning: comment on exported type CustomAuditor should be of the form "CustomAuditor ..." (with optional leading article) (golint)
    • Line 15: warning: exported type Auditor should have comment or be unexported (golint)
    • Line 19: warning: exported function Audith should have comment or be unexported (golint)
    • Line 27: warning: exported function BasicAuditor should have comment or be unexported (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!