Preparing report...

Report for github.com/Strum355/log

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


gocyclo83%

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.

    • log/log_test.go
    • Line 47: warning: cyclomatic complexity 35 of function Test_SimpleLogger() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • log/entry.go
    • Line 16: warning: exported var Key should have comment or be unexported (golint)
    • Line 18: warning: exported type Entry should have comment or be unexported (golint)
    • Line 25: warning: exported function WithError should have comment or be unexported (golint)
    • Line 33: warning: exported method Entry.WithError should have comment or be unexported (golint)
    • Line 39: warning: exported method Entry.WithContext should have comment or be unexported (golint)
    • Line 46: warning: exported function WithContext should have comment or be unexported (golint)
    • Line 65: warning: exported method Entry.Clone should have comment or be unexported (golint)
    • Line 76: warning: exported function Debug should have comment or be unexported (golint)
    • Line 80: warning: exported method Entry.Debug should have comment or be unexported (golint)
    • Line 84: warning: exported function Info should have comment or be unexported (golint)
    • Line 88: warning: exported method Entry.Info should have comment or be unexported (golint)
    • Line 92: warning: exported function Warn should have comment or be unexported (golint)
    • Line 96: warning: exported method Entry.Warn should have comment or be unexported (golint)
    • Line 100: warning: exported function Error should have comment or be unexported (golint)
    • log/fields.go
    • Line 9: warning: exported type Fields should have comment or be unexported (golint)
    • Line 11: warning: exported function WithFields should have comment or be unexported (golint)
    • Line 15: warning: exported method Entry.WithFields should have comment or be unexported (golint)
    • log/log.go
    • Line 11: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 37: warning: exported type Config should have comment or be unexported (golint)
    • Line 53: warning: exported function InitJSONLogger should have comment or be unexported (golint)
    • Line 59: warning: exported function InitSimpleLogger 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!