Preparing report...

Report for github.com/ltick/tick-routing

A+    Excellent!    Found 14 issues across 42 files

Tweet

gofmt95%

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!


gocyclo95%

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.


golint78%

Golint is a linter for Go source code.

    • tick-routing/context.go
    • Line 37: warning: exported method Context.Params should have comment or be unexported (golint)
    • Line 41: warning: exported method Context.ParamMap should have comment or be unexported (golint)
    • Line 49: warning: exported method Context.WriteHeader should have comment or be unexported (golint)
    • Line 53: warning: exported method Context.GetClientIP should have comment or be unexported (golint)
    • Line 61: warning: exported method Context.GetClientRealIP should have comment or be unexported (golint)
    • Line 72: warning: exported method Context.GetClientRemoteIP should have comment or be unexported (golint)
    • tick-routing/group.go
    • Line 36: warning: exported method RouteGroup.GetStartupHandlers should have comment or be unexported (golint)
    • Line 40: warning: exported method RouteGroup.GetAnteriorHandlers should have comment or be unexported (golint)
    • Line 44: warning: exported method RouteGroup.GetPosteriorHandlers should have comment or be unexported (golint)
    • Line 48: warning: exported method RouteGroup.GetShutdownHandlers should have comment or be unexported (golint)
    • Line 130: warning: comment on exported method RouteGroup.AppendStartupHandler should be of the form "AppendStartupHandler ..." (golint)
    • Line 136: warning: exported method RouteGroup.AppendShutdownHandler should have comment or be unexported (golint)
    • Line 140: warning: exported method RouteGroup.AppendAnteriorHandler should have comment or be unexported (golint)
    • Line 144: warning: exported method RouteGroup.AppendPosteriorHandler should have comment or be unexported (golint)
    • tick-routing/proxy/proxy.go
    • Line 5: warning: package comment should be of the form "Package proxy ..." (golint)
    • Line 22: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 30: warning: exported method Proxy.MatchProxy should have comment or be unexported (golint)
    • Line 98: warning: exported function HTTPProxyHandler should have comment or be unexported (golint)
    • tick-routing/access/logger.go
    • Line 97: warning: exported method LogResponseWriter.WriteHeader should have comment or be unexported (golint)
    • Line 102: warning: exported function GetClientIP should have comment or be unexported (golint)
    • tick-routing/auth/handlers.go
    • Line 192: warning: comment on exported type VerificationKeyHandler should be of the form "VerificationKeyHandler ..." (with optional leading article) (golint)
    • tick-routing/content/negotiator.go
    • Line 12: warning: exported type AcceptRange should have comment or be unexported (golint)
    • Line 20: warning: exported method AcceptRange.RawString should have comment or be unexported (golint)
    • Line 33: warning: exported function AcceptMediaTypes should have comment or be unexported (golint)
    • Line 43: warning: exported function ParseAcceptRanges should have comment or be unexported (golint)
    • Line 57: warning: exported function ParseAcceptRange should have comment or be unexported (golint)
    • Line 124: warning: exported function NegotiateContentType should have comment or be unexported (golint)
    • tick-routing/content/type.go
    • Line 64: warning: exported method JSONDataWriter.SetHeader should have comment or be unexported (golint)
    • Line 83: warning: exported method XMLDataWriter.SetHeader should have comment or be unexported (golint)
    • Line 99: warning: exported method HTMLDataWriter.SetHeader should have comment or be unexported (golint)
    • tick-routing/router.go
    • Line 106: warning: comment on exported method Router.AppendStartupHandler should be of the form "AppendStartupHandler ..." (golint)
    • Line 112: warning: comment on exported method Router.AppendShutdownHandler should be of the form "AppendShutdownHandler ..." (golint)
    • Line 118: warning: exported method Router.AppendAnteriorHandler should have comment or be unexported (golint)
    • Line 123: warning: exported method Router.AppendPosteriorHandler should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!