Preparing report...

Report for github.com/yeqown/log

A+    Excellent!    Found 4 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!


golint73%

Golint is a linter for Go source code.

    • log/caller.go
    • Line 79: warning: comment on exported function GetCallerForTest should be of the form "GetCallerForTest ..." (golint)
    • log/log.go
    • Line 30: warning: exported method Level.Color should have comment or be unexported (golint)
    • Line 138: warning: exported function SetCallerReporter should have comment or be unexported (golint)
    • Line 142: warning: exported function SetTimeFormat should have comment or be unexported (golint)
    • log/logger.go
    • Line 26: warning: exported type Logger should have comment or be unexported (golint)
    • Line 61: warning: exported method Logger.Fatal should have comment or be unexported (golint)
    • Line 69: warning: exported method Logger.Fatalf should have comment or be unexported (golint)
    • Line 83: warning: exported method Logger.Errorf should have comment or be unexported (golint)
    • Line 89: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 95: warning: exported method Logger.Warnf should have comment or be unexported (golint)
    • Line 101: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 107: warning: exported method Logger.Infof should have comment or be unexported (golint)
    • Line 113: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 119: warning: exported method Logger.Debugf should have comment or be unexported (golint)
    • Line 150: warning: exported method Logger.SetLogLevel should have comment or be unexported (golint)
    • Line 154: warning: exported method Logger.SetCallerReporter should have comment or be unexported (golint)
    • Line 158: warning: exported method Logger.SetTimeFormat should have comment or be unexported (golint)
    • Line 167: warning: exported method Logger.WithField should have comment or be unexported (golint)
    • Line 174: warning: exported method Logger.WithFields should have comment or be unexported (golint)
    • Line 181: warning: exported method Logger.WithContext 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!