Preparing report...

Report for github.com/obity/mux

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


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!


golint16%

Golint is a linter for Go source code.

    • mux/mux.go
    • Line 21: warning: comment on exported type Mux should be of the form "Mux ..." (with optional leading article) (golint)
    • Line 46: warning: comment on exported function NewMux should be of the form "NewMux ..." (golint)
    • Line 55: warning: comment on exported method Mux.Default should be of the form "Default ..." (golint)
    • Line 62: warning: comment on exported method Mux.SetEngine should be of the form "SetEngine ..." (golint)
    • Line 69: warning: comment on exported method Mux.Start should be of the form "Start ..." (golint)
    • Line 76: warning: comment on exported method Mux.StartTLS should be of the form "StartTLS ..." (golint)
    • Line 83: warning: comment on exported method Mux.SetBasePath should be of the form "SetBasePath ..." (golint)
    • Line 91: warning: comment on exported method Mux.GET should be of the form "GET ..." (golint)
    • Line 98: warning: comment on exported method Mux.HEAD should be of the form "HEAD ..." (golint)
    • Line 105: warning: comment on exported method Mux.POST should be of the form "POST ..." (golint)
    • Line 112: warning: comment on exported method Mux.PUT should be of the form "PUT ..." (golint)
    • Line 119: warning: comment on exported method Mux.PATCH should be of the form "PATCH ..." (golint)
    • Line 126: warning: comment on exported method Mux.DELETE should be of the form "DELETE ..." (golint)
    • Line 133: warning: comment on exported method Mux.CONNECT should be of the form "CONNECT ..." (golint)
    • Line 140: warning: comment on exported method Mux.OPTIONS should be of the form "OPTIONS ..." (golint)
    • Line 147: warning: comment on exported method Mux.TRACE should be of the form "TRACE ..." (golint)
    • Line 154: warning: comment on exported method Mux.AppendRoute should be of the form "AppendRoute ..." (golint)
    • mux/route.go
    • Line 30: warning: exported type ContextType should have comment or be unexported (golint)
    • Line 32: warning: comment on exported const VarsKey should be of the form "VarsKey ..." (golint)
    • Line 37: warning: comment on exported function SetVars should be of the form "SetVars ..." (golint)
    • Line 44: warning: comment on exported function Vars should be of the form "Vars ..." (golint)
    • mux/example/main.go
    • Line 18: warning: exported function PetHandler should have comment or be unexported (golint)
    • Line 26: warning: exported function Findbystatus should have comment or be unexported (golint)
    • Line 32: warning: exported function Createwithlist should have comment or be unexported (golint)
    • Line 38: warning: exported function Userinfo should have comment or be unexported (golint)
    • Line 44: warning: exported function UserHandler should have comment or be unexported (golint)
    • mux/doc.go
    • Line 1: warning: package comment should be of the form "Package mux ..." (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!