Preparing report...

Report for github.com/phachon/fastgo

A    Great!    Found 3 issues across 11 files

Tweet

gofmt72%

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!


gocyclo90%

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.


golint72%

Golint is a linter for Go source code.

    • fastgo/bootstrap.go
    • Line 16: warning: exported var Version should have comment or be unexported (golint)
    • Line 125: warning: exported function SetViewsPath should have comment or be unexported (golint)
    • Line 129: warning: exported function SetStaticPath should have comment or be unexported (golint)
    • Line 133: warning: exported function SetTemplateSuffix should have comment or be unexported (golint)
    • Line 137: warning: exported function ListenAndServe should have comment or be unexported (golint)
    • Line 145: warning: exported function Run should have comment or be unexported (golint)
    • fastgo/controller.go
    • Line 16: warning: exported type ControllerInterface should have comment or be unexported (golint)
    • Line 22: warning: exported function NewController should have comment or be unexported (golint)
    • Line 26: warning: exported type Controller should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method Controller.Init should be of the form "Init ..." (golint)
    • Line 48: warning: comment on exported method Controller.Before should be of the form "Before ..." (golint)
    • Line 53: warning: comment on exported method Controller.After should be of the form "After ..." (golint)
    • Line 62: warning: comment on exported method Controller.Render should be of the form "Render ..." (golint)
    • Line 74: warning: comment on exported method Controller.LayoutRender should be of the form "LayoutRender ..." (golint)
    • Line 97: warning: comment on exported method Controller.ReturnJson should be of the form "ReturnJson ..." (golint)
    • Line 108: warning: comment on exported method Controller.ReturnError should be of the form "ReturnError ..." (golint)
    • Line 114: warning: comment on exported method Controller.GetString should be of the form "GetString ..." (golint)
    • Line 118: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 123: warning: comment on exported method Controller.GetBool should be of the form "GetBool ..." (golint)
    • Line 132: warning: comment on exported method Controller.GetInt should be of the form "GetInt ..." (golint)
    • Line 142: warning: comment on exported method Controller.GetInt8 should be of the form "GetInt8 ..." (golint)
    • Line 152: warning: comment on exported method Controller.GetUInt8 should be of the form "GetUInt8 ..." (golint)
    • Line 162: warning: comment on exported method Controller.GetInt16 should be of the form "GetInt16 ..." (golint)
    • Line 172: warning: comment on exported method Controller.GetUInt16 should be of the form "GetUInt16 ..." (golint)
    • Line 182: warning: comment on exported method Controller.GetInt32 should be of the form "GetInt32 ..." (golint)
    • Line 192: warning: comment on exported method Controller.GetUInt32 should be of the form "GetUInt32 ..." (golint)
    • Line 202: warning: comment on exported method Controller.GetInt64 should be of the form "GetInt64 ..." (golint)
    • Line 212: warning: comment on exported method Controller.GetUInt64 should be of the form "GetUInt64 ..." (golint)
    • Line 222: warning: comment on exported method Controller.GetCtxFloat64 should be of the form "GetCtxFloat64 ..." (golint)
    • Line 229: warning: comment on exported method Controller.GetFile should be of the form "GetFile ..." (golint)
    • Line 234: warning: comment on exported method Controller.IsAjax should be of the form "IsAjax ..." (golint)
    • Line 239: warning: exported method Controller.SetCookie should have comment or be unexported (golint)
    • Line 288: warning: exported method Controller.GetCookie should have comment or be unexported (golint)
    • Line 292: warning: exported method Controller.GetCookieString should have comment or be unexported (golint)
    • Line 296: warning: exported method Controller.UserAgent should have comment or be unexported (golint)
    • Line 300: warning: comment on exported method Controller.Static should be of the form "Static ..." (golint)
    • fastgo/router.go
    • Line 10: warning: exported type Router should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 20: warning: exported method Router.Add should have comment or be unexported (golint)
    • Line 59: warning: comment on exported method Router.Request should be of the form "Request ..." (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!