Preparing report...

Report for github.com/gliderlabs/stdcom

A+    Excellent!    Found 14 issues across 30 files

Tweet

gofmt93%

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!


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!


golint53%

Golint is a linter for Go source code.

    • stdcom/log/std/std.go
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported type Output should have comment or be unexported (golint)
    • Line 23: warning: exported var Stdout should have comment or be unexported (golint)
    • Line 34: warning: exported type Logger should have comment or be unexported (golint)
    • Line 42: warning: exported method Logger.InitializeConfig should have comment or be unexported (golint)
    • Line 106: warning: exported method Logger.With should have comment or be unexported (golint)
    • Line 113: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 117: warning: exported method Logger.Debugf should have comment or be unexported (golint)
    • Line 121: warning: exported method Logger.Debugw should have comment or be unexported (golint)
    • Line 127: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 131: warning: exported method Logger.Infof should have comment or be unexported (golint)
    • Line 135: warning: exported method Logger.Infow should have comment or be unexported (golint)
    • Line 145: warning: exported method Logger.Errorf should have comment or be unexported (golint)
    • Line 149: warning: exported method Logger.Errorw should have comment or be unexported (golint)
    • stdcom/web/console/config.go
    • Line 7: warning: exported type Config should have comment or be unexported (golint)
    • Line 15: warning: exported method Component.InitializeConfig should have comment or be unexported (golint)
    • stdcom/web/console/web.go
    • Line 12: warning: exported method Component.MatchHTTP should have comment or be unexported (golint)
    • Line 29: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 56: warning: exported method Component.RenderTemplate should have comment or be unexported (golint)
    • stdcom/log/null/null.go
    • Line 8: warning: exported type Logger should have comment or be unexported (golint)
    • Line 17: warning: exported method Logger.With should have comment or be unexported (golint)
    • Line 20: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 21: warning: exported method Logger.Debugf should have comment or be unexported (golint)
    • Line 22: warning: exported method Logger.Debugw should have comment or be unexported (golint)
    • Line 23: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 24: warning: exported method Logger.Infof should have comment or be unexported (golint)
    • Line 25: warning: exported method Logger.Infow should have comment or be unexported (golint)
    • Line 27: warning: exported method Logger.Errorf should have comment or be unexported (golint)
    • Line 28: warning: exported method Logger.Errorw should have comment or be unexported (golint)
    • stdcom/web/sessions/com.go
    • Line 10: warning: exported function Register should have comment or be unexported (golint)
    • Line 14: warning: exported type Store should have comment or be unexported (golint)
    • Line 16: warning: exported type Component should have comment or be unexported (golint)
    • Line 22: warning: exported type Initializer should have comment or be unexported (golint)
    • Line 26: warning: exported type Session should have comment or be unexported (golint)
    • Line 33: warning: exported method Component.InitializeDaemon should have comment or be unexported (golint)
    • Line 37: warning: exported method Component.Initialize should have comment or be unexported (golint)
    • Line 53: warning: exported method Component.Get should have comment or be unexported (golint)
    • Line 57: warning: exported method Component.New should have comment or be unexported (golint)
    • Line 61: warning: exported method Component.Save should have comment or be unexported (golint)
    • Line 65: warning: exported method Component.Value should have comment or be unexported (golint)
    • Line 77: warning: exported method Component.ValueString should have comment or be unexported (golint)
    • Line 82: warning: exported method Component.Set should have comment or be unexported (golint)
    • Line 94: warning: exported method Component.Unset should have comment or be unexported (golint)
    • stdcom/web/auth/config.go
    • Line 9: warning: exported type Config should have comment or be unexported (golint)
    • Line 18: warning: exported method Component.InitializeConfig should have comment or be unexported (golint)
    • stdcom/web/auth/api.go
    • Line 9: warning: exported type User should have comment or be unexported (golint)
    • Line 11: warning: exported type Requestor should have comment or be unexported (golint)
    • stdcom/web/console/api.go
    • Line 5: warning: exported type MenuProvider should have comment or be unexported (golint)
    • Line 9: warning: exported type MenuItem should have comment or be unexported (golint)
    • Line 14: warning: exported type PageHandler should have comment or be unexported (golint)
    • stdcom/web/auth/com.go
    • Line 13: warning: exported function Register should have comment or be unexported (golint)
    • Line 17: warning: exported type Component should have comment or be unexported (golint)
    • Line 24: warning: exported method Component.CurrentUser should have comment or be unexported (golint)
    • Line 36: warning: exported method Component.LoginURL should have comment or be unexported (golint)
    • Line 46: warning: exported method Component.LogoutURL should have comment or be unexported (golint)
    • stdcom/web/auth/web.go
    • Line 18: warning: exported const SessionKeyFmt should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var UserSessionKey should have comment or be unexported (golint)
    • Line 30: warning: exported method Component.MatchHTTP should have comment or be unexported (golint)
    • stdcom/web/console/com.go
    • Line 10: warning: exported function Register should have comment or be unexported (golint)
    • Line 14: warning: exported type Component should have comment 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!