Preparing report...

Report for github.com/goapt/gee

A+    Excellent!    Found 17 issues across 32 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!


golint50%

Golint is a linter for Go source code.

    • gee/router_group.go
    • Line 20: warning: exported type RouterGroup should have comment or be unexported (golint)
    • Line 33: warning: exported method RouterGroup.Use should have comment or be unexported (golint)
    • Line 38: warning: exported method RouterGroup.Any should have comment or be unexported (golint)
    • Line 43: warning: exported method RouterGroup.POST should have comment or be unexported (golint)
    • Line 48: warning: exported method RouterGroup.GET should have comment or be unexported (golint)
    • Line 53: warning: exported method RouterGroup.DELETE should have comment or be unexported (golint)
    • Line 58: warning: exported method RouterGroup.OPTIONS should have comment or be unexported (golint)
    • Line 63: warning: exported method RouterGroup.PUT should have comment or be unexported (golint)
    • Line 68: warning: exported method RouterGroup.PATCH should have comment or be unexported (golint)
    • Line 73: warning: exported method RouterGroup.HEAD should have comment or be unexported (golint)
    • Line 78: warning: exported method RouterGroup.Handle should have comment or be unexported (golint)
    • Line 83: warning: exported method RouterGroup.Group should have comment or be unexported (golint)
    • gee/args.go
    • Line 7: warning: exported var ExtCliArgs should have comment or be unexported (golint)
    • Line 8: warning: exported var CliArgs should have comment or be unexported (golint)
    • Line 10: warning: exported function ArgsInit should have comment or be unexported (golint)
    • gee/response.go
    • Line 7: warning: exported type Response should have comment or be unexported (golint)
    • Line 11: warning: exported type RenderFunc should have comment or be unexported (golint)
    • Line 13: warning: exported method RenderFunc.Render should have comment or be unexported (golint)
    • Line 15: warning: exported type JSONResponse should have comment or be unexported (golint)
    • Line 20: warning: exported method JSONResponse.Render should have comment or be unexported (golint)
    • Line 24: warning: exported type XMLResponse should have comment or be unexported (golint)
    • Line 29: warning: exported method XMLResponse.Render should have comment or be unexported (golint)
    • Line 33: warning: exported type RedirectResponse should have comment or be unexported (golint)
    • Line 38: warning: exported method RedirectResponse.Render should have comment or be unexported (golint)
    • Line 42: warning: exported type StringResponse should have comment or be unexported (golint)
    • Line 48: warning: exported method StringResponse.Render should have comment or be unexported (golint)
    • gee/handle.go
    • Line 12: warning: exported type IHandler should have comment or be unexported (golint)
    • Line 16: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 18: warning: exported method HandlerFunc.Handle should have comment or be unexported (golint)
    • Line 24: warning: exported function Handle should have comment or be unexported (golint)
    • Line 34: warning: exported function HandleFunc should have comment or be unexported (golint)
    • Line 38: warning: exported function Wrap should have comment or be unexported (golint)
    • Line 45: warning: exported function WrapH should have comment or be unexported (golint)
    • gee/shutdown.go
    • Line 13: warning: exported function WaitSignal should have comment or be unexported (golint)
    • Line 31: warning: exported function RegisterShutDown should have comment or be unexported (golint)
    • gee/debug.go
    • Line 13: warning: exported function SetDebugToken should have comment or be unexported (golint)
    • Line 27: warning: exported function DebugRoute should have comment or be unexported (golint)
    • Line 38: warning: exported function DebugWithRouteGroup should have comment or be unexported (golint)
    • gee/writer.go
    • Line 9: warning: exported type ResponseWriter should have comment or be unexported (golint)
    • Line 34: warning: exported method ResponseWriter.Body should have comment or be unexported (golint)
    • Line 38: warning: exported method ResponseWriter.WriteString should have comment or be unexported (golint)
    • gee/context.go
    • Line 22: warning: exported type Context should have comment or be unexported (golint)
    • Line 31: warning: exported method Context.Render should have comment or be unexported (golint)
    • Line 36: warning: exported method Context.ShouldBindJSON should have comment or be unexported (golint)
    • Line 40: warning: comment on exported method Context.ShouldBindBodyJSON should be of the form "ShouldBindBodyJSON ..." (golint)
    • Line 45: warning: exported method Context.GetBody should have comment or be unexported (golint)
    • Line 54: warning: exported method Context.AddRenderHook should have comment or be unexported (golint)
    • Line 58: warning: exported method Context.ResponseWriter should have comment or be unexported (golint)
    • Line 65: warning: exported method Context.ResponseBody should have comment or be unexported (golint)
    • Line 72: warning: exported method Context.BindJSON should have comment or be unexported (golint)
    • Line 76: warning: exported method Context.Status should have comment or be unexported (golint)
    • Line 80: warning: exported method Context.JSON should have comment or be unexported (golint)
    • Line 87: warning: exported method Context.XML should have comment or be unexported (golint)
    • Line 94: warning: exported method Context.Redirect should have comment or be unexported (golint)
    • Line 109: warning: exported method Context.GetToken should have comment or be unexported (golint)
    • Line 113: warning: exported method Context.RequestId should have comment or be unexported (golint)
    • Line 123: warning: exported method Context.SetLogInfo should have comment or be unexported (golint)
    • gee/cli_server.go
    • Line 12: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 22: warning: exported type CliServer should have comment or be unexported (golint)
    • Line 26: warning: exported function NewCliServer should have comment or be unexported (golint)
    • Line 32: warning: exported method CliServer.Serv should have comment or be unexported (golint)
    • Line 36: warning: exported method CliServer.Run should have comment or be unexported (golint)
    • gee/gee.go
    • Line 17: warning: exported type Engine should have comment or be unexported (golint)
    • Line 22: warning: exported function Default should have comment or be unexported (golint)
    • Line 32: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method Engine.Use should have comment or be unexported (golint)
    • Line 47: warning: exported method Engine.NoRoute should have comment or be unexported (golint)
    • Line 80: warning: exported function CreateTestContext should have comment or be unexported (golint)
    • gee/render/json.go
    • Line 9: warning: exported type JSON should have comment or be unexported (golint)
    • Line 16: warning: exported method JSON.WriteContentType should have comment or be unexported (golint)
    • Line 20: warning: exported method JSON.WriteJSON should have comment or be unexported (golint)
    • Line 30: warning: exported method JSON.Render should have comment or be unexported (golint)
    • Line 40: warning: exported method JSON.Hooks should have comment or be unexported (golint)
    • gee/binding/json.go
    • Line 14: warning: exported type JsonBindingError should have comment or be unexported (golint)
    • Line 59: warning: exported var JSON should have comment or be unexported (golint)
    • gee/binding/validate.go
    • Line 23: warning: exported type DefaultValidator should have comment or be unexported (golint)
    • Line 31: warning: exported method DefaultValidator.ValidateStruct should have comment or be unexported (golint)
    • Line 49: warning: exported method DefaultValidator.Engine should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!