Preparing report...

Report for github.com/grokify/beegoutil

A+    Excellent!    Found 12 issues across 15 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!


golint20%

Golint is a linter for Go source code.

    • beegoutil/logger.go
    • Line 9: warning: exported function NewLoggerAdapterConsole should have comment or be unexported (golint)
    • Line 15: warning: exported type BeegoLogsMore should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBeegoLogsMoreAdapterConsole should have comment or be unexported (golint)
    • beegoutil/oauth2.go
    • Line 13: warning: exported const BeegoOauth2ProvidersCfgVar should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported function InitOAuth2Config should have comment or be unexported (golint)
    • beegoutil/demo1/conf/config.go
    • Line 11: warning: exported const OAuth2TokenCfgValPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 22: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 26: warning: exported method Config.Logger should have comment or be unexported (golint)
    • Line 34: warning: exported var OAuth2Configs should have comment or be unexported (golint)
    • Line 36: warning: exported function GetTokenPath should have comment or be unexported (golint)
    • Line 40: warning: exported function InitSession should have comment or be unexported (golint)
    • Line 44: warning: exported function InitOAuth2Config should have comment or be unexported (golint)
    • beegoutil/demo1/controllers/login.go
    • Line 13: warning: exported type LoginController should have comment or be unexported (golint)
    • Line 18: warning: exported method LoginController.Get should have comment or be unexported (golint)
    • Line 47: warning: exported method LoginController.LoginPage should have comment or be unexported (golint)
    • Line 58: warning: exported method LoginController.LoggedinPage should have comment or be unexported (golint)
    • beegoutil/demo1/controllers/oauth2callback.go
    • Line 20: warning: exported type Oauth2CallbackController should have comment or be unexported (golint)
    • Line 25: warning: exported method Oauth2CallbackController.Get should have comment or be unexported (golint)
    • Line 72: warning: exported method Oauth2CallbackController.Login should have comment or be unexported (golint)
    • Line 103: warning: exported method Oauth2CallbackController.SaveSessionUser should have comment or be unexported (golint)
    • beegoutil/session.go
    • Line 11: warning: exported const BeegoSessionCookieNameCfgVar should have comment (or a comment on this block) 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!