Preparing report...

Report for github.com/goapt/logger

A+    Excellent!    Found 5 issues across 8 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!


golint37%

Golint is a linter for Go source code.

    • logger/file_hook.go
    • Line 19: warning: exported function NewFileHook should have comment or be unexported (golint)
    • Line 39: warning: exported method FileHook.Fire should have comment or be unexported (golint)
    • Line 74: warning: exported method FileHook.Levels should have comment or be unexported (golint)
    • logger/interface.go
    • Line 5: warning: comment on exported type IBaseLogger should be of the form "IBaseLogger ..." (with optional leading article) (golint)
    • logger/logger.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 41: warning: exported function Setting should have comment or be unexported (golint)
    • Line 46: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 98: warning: exported function AddHook should have comment or be unexported (golint)
    • Line 102: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 106: warning: exported function Infof should have comment or be unexported (golint)
    • Line 110: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 114: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 118: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 122: warning: exported function Tracef should have comment or be unexported (golint)
    • Line 126: warning: exported function Debug should have comment or be unexported (golint)
    • Line 130: warning: exported function Info should have comment or be unexported (golint)
    • Line 134: warning: exported function Warn should have comment or be unexported (golint)
    • Line 138: warning: exported function Error should have comment or be unexported (golint)
    • Line 142: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 146: warning: exported function Trace should have comment or be unexported (golint)
    • Line 150: warning: exported function WithFields should have comment or be unexported (golint)
    • Line 154: warning: exported function Data should have comment or be unexported (golint)
    • Line 158: warning: exported function Skip should have comment or be unexported (golint)
    • logger/logger_rotate.go
    • Line 5: warning: exported type ILoggerRotate should have comment or be unexported (golint)
    • Line 10: warning: exported type LoggerRotate should have comment or be unexported (golint)
    • Line 12: warning: exported method LoggerRotate.Current should have comment or be unexported (golint)
    • Line 16: warning: exported method LoggerRotate.Prev should have comment or be unexported (golint)
    • logger/logrus_logger.go
    • Line 24: warning: comment on exported function NewLogrusLogger should be of the form "NewLogrusLogger ..." (golint)
    • Line 57: warning: exported method LogrusLogger.WithFields should have comment or be unexported (golint)
    • Line 65: warning: exported method LogrusLogger.Data should have comment or be unexported (golint)
    • Line 71: warning: exported method LogrusLogger.AddHook should have comment or be unexported (golint)
    • Line 75: warning: exported method LogrusLogger.Debugf should have comment or be unexported (golint)
    • Line 79: warning: exported method LogrusLogger.Infof should have comment or be unexported (golint)
    • Line 83: warning: exported method LogrusLogger.Warnf should have comment or be unexported (golint)
    • Line 87: warning: exported method LogrusLogger.Errorf should have comment or be unexported (golint)
    • Line 91: warning: exported method LogrusLogger.Fatalf should have comment or be unexported (golint)
    • Line 95: warning: exported method LogrusLogger.Tracef should have comment or be unexported (golint)
    • Line 99: warning: exported method LogrusLogger.Debug should have comment or be unexported (golint)
    • Line 103: warning: exported method LogrusLogger.Info should have comment or be unexported (golint)
    • Line 107: warning: exported method LogrusLogger.Warn should have comment or be unexported (golint)
    • Line 115: warning: exported method LogrusLogger.Fatal should have comment or be unexported (golint)
    • Line 119: warning: exported method LogrusLogger.Trace should have comment or be unexported (golint)
    • Line 194: warning: if block ends with a return statement, so drop this else and outdent its block (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!