Preparing report...

Report for github.com/admpub/log

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


golint69%

Golint is a linter for Go source code.

    • log/filter.go
    • Line 63: warning: exported method Filter.SetLevel should have comment or be unexported (golint)
    • Line 73: warning: exported method Filter.SetLevels should have comment or be unexported (golint)
    • log/level_http.go
    • Line 9: warning: exported function NewHttpLevel should have comment or be unexported (golint)
    • Line 32: warning: receiver name l should be consistent with previous receiver name h for httpLevel (golint)
    • log/logger_writer.go
    • Line 9: warning: exported type LoggerWriter should have comment or be unexported (golint)
    • Line 57: warning: exported method LoggerWriter.Printf should have comment or be unexported (golint)
    • Line 62: warning: exported method LoggerWriter.Println should have comment or be unexported (golint)
    • log/target_console.go
    • Line 25: warning: exported const ColorFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 89: warning: exported method ConsoleTarget.ColorizeFlag should have comment or be unexported (golint)
    • Line 98: warning: exported method ConsoleTarget.ColorizeRow should have comment or be unexported (golint)
    • log/default.go
    • Line 12: warning: exported function GetLogger should have comment or be unexported (golint)
    • Line 16: warning: exported function Sync should have comment or be unexported (golint)
    • Line 20: warning: exported function Async should have comment or be unexported (golint)
    • Line 24: warning: exported function SetTarget should have comment or be unexported (golint)
    • Line 28: warning: exported function SetFormatter should have comment or be unexported (golint)
    • Line 32: warning: exported function SetFatalAction should have comment or be unexported (golint)
    • Line 36: warning: exported function AddTarget should have comment or be unexported (golint)
    • Line 40: warning: exported function SetLevel should have comment or be unexported (golint)
    • Line 44: warning: exported function SetCallStack should have comment or be unexported (golint)
    • Line 53: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 57: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 61: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 65: warning: exported function Infof should have comment or be unexported (golint)
    • Line 69: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 73: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 77: warning: exported function Error should have comment or be unexported (golint)
    • Line 81: warning: exported function Warn should have comment or be unexported (golint)
    • Line 85: warning: exported function Info should have comment or be unexported (golint)
    • Line 89: warning: exported function Debug should have comment or be unexported (golint)
    • Line 93: warning: exported function Writer should have comment or be unexported (golint)
    • Line 97: warning: exported function Close should have comment or be unexported (golint)
    • Line 101: warning: exported function UseCommonTargets 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!