Preparing report...

Report for github.com/evilsocket/islazy

A+    Excellent!    Found 7 issues across 43 files

Tweet

gofmt95%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint88%

Golint is a linter for Go source code.

    • islazy/plugin/plugin.go
    • Line 112: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 121: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 224: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • islazy/plugin.go
    • Line 112: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 121: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 224: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • islazy/log/level.go
    • Line 11: warning: comment on exported const DEBUG should be of the form "DEBUG ..." (golint)
    • Line 13: warning: comment on exported const INFO should be of the form "INFO ..." (golint)
    • Line 15: warning: comment on exported const IMPORTANT should be of the form "IMPORTANT ..." (golint)
    • Line 17: warning: comment on exported const WARNING should be of the form "WARNING ..." (golint)
    • Line 19: warning: comment on exported const ERROR should be of the form "ERROR ..." (golint)
    • Line 21: warning: comment on exported const FATAL should be of the form "FATAL ..." (golint)
    • islazy/log/policy.go
    • Line 10: warning: comment on exported function ExitOnFatal should be of the form "ExitOnFatal ..." (golint)
    • Line 15: warning: comment on exported function ExitCleanOnFatal should be of the form "ExitCleanOnFatal ..." (golint)
    • Line 20: warning: comment on exported function NoneOnFatal should be of the form "NoneOnFatal ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words