Preparing report...

Report for github.com/rsms/go-log

A+    Excellent!    Found 1 issues across 2 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.

    • go-log/log.go
    • Line 19: warning: exported const LevelDebug should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported type Features should be of the form "Features ..." (with optional leading article) (golint)
    • Line 36: warning: exported const FDate should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported type Logger should have comment or be unexported (golint)
    • Line 77: warning: exported var RootLogger should have comment or be unexported (golint)
    • Line 79: warning: exported function Error should have comment or be unexported (golint)
    • Line 80: warning: exported function Warn should have comment or be unexported (golint)
    • Line 81: warning: exported function Info should have comment or be unexported (golint)
    • Line 82: warning: exported function Debug should have comment or be unexported (golint)
    • Line 83: warning: exported function Time should have comment or be unexported (golint)
    • Line 84: warning: exported function Printf should have comment or be unexported (golint)
    • Line 85: warning: exported function SubLogger should have comment or be unexported (golint)
    • Line 86: warning: exported function Sync should have comment or be unexported (golint)
    • Line 106: warning: exported method Logger.SubLogger should have comment or be unexported (golint)
    • Line 113: warning: exported method Logger.Close should have comment or be unexported (golint)
    • Line 134: warning: exported method Logger.EnableFeatures should have comment or be unexported (golint)
    • Line 142: warning: exported method Logger.DisableFeatures should have comment or be unexported (golint)
    • Line 150: warning: exported method Logger.Writer should have comment or be unexported (golint)
    • Line 154: warning: exported method Logger.SetWriter should have comment or be unexported (golint)
    • Line 164: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 170: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 176: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 180: warning: exported method Logger.LogDebug should have comment or be unexported (golint)
    • Line 237: warning: exported method Logger.Log should have comment or be unexported (golint)
    • Line 243: warning: comment on exported method Logger.Errorf should be of the form "Errorf ..." (golint)
    • Line 245: warning: exported method Logger.Warningf should have comment or be unexported (golint)
    • Line 246: warning: exported method Logger.Infof should have comment or be unexported (golint)
    • Line 247: warning: exported method Logger.Debugf 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!