Preparing report...

Report for github.com/p9c/logi

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


gocyclo66%

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.

    • logi/log.go
    • Line 119: warning: cyclomatic complexity 33 of function Composite() is high (> 15) (gocyclo)

golint66%

Golint is a linter for Go source code.

    • logi/log.go
    • Line 18: warning: exported const Off should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported method Logger.SetLevel should be of the form "SetLevel ..." (golint)
    • Line 85: warning: exported method Logger.SetLogPaths should have comment or be unexported (golint)
    • Line 105: warning: comment on exported method LogWriter.Print should be of the form "Print ..." (golint)
    • Line 110: warning: exported method LogWriter.Printf should have comment or be unexported (golint)
    • Line 114: warning: comment on exported method LogWriter.Println should be of the form "Println ..." (golint)
    • Line 119: warning: exported function Composite should have comment or be unexported (golint)
    • Line 299: warning: comment on exported function DirectionString should be of the form "DirectionString ..." (golint)
    • Line 307: warning: comment on exported function Empty should be of the form "Empty ..." (golint)
    • Line 343: warning: comment on exported function FileExists should be of the form "FileExists ..." (golint)
    • Line 357: warning: exported function PickNoun should have comment or be unexported (golint)
    • Line 363: warning: exported function Print should have comment or be unexported (golint)
    • Line 390: warning: comment on exported function Printf should be of the form "Printf ..." (golint)
    • Line 418: warning: comment on exported function Println should be of the form "Println ..." (golint)
    • Line 507: warning: exported function SetLogWriter should have comment or be unexported (golint)
    • Line 518: warning: exported type Entry should have comment or be unexported (golint)
    • Line 525: warning: exported type Logger should have comment or be unexported (golint)
    • Line 561: warning: exported type LogWriter should have comment or be unexported (golint)
    • Line 565: warning: exported type PrintcFunc should have comment or be unexported (golint)
    • Line 566: warning: exported type PrintfFunc should have comment or be unexported (golint)
    • Line 567: warning: exported type PrintlnFunc should have comment or be unexported (golint)
    • Line 568: warning: exported type CheckFunc should have comment or be unexported (golint)
    • Line 569: warning: exported type SpewFunc should have comment or be unexported (golint)
    • Line 587: warning: comment on exported var NoCheck should be of the form "NoCheck ..." (golint)
    • Line 601: warning: exported var BackgroundGrey should have comment or be unexported (golint)
    • Line 618: warning: exported var L should have comment or be unexported (golint)
    • Line 620: warning: exported var Levels should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.

    • logi/log.go
    • Line 39: warning: ineffectual assignment to fallen (ineffassign)
    • Line 46: warning: ineffectual assignment to fallen (ineffassign)
    • Line 52: warning: ineffectual assignment to fallen (ineffassign)
    • Line 59: warning: ineffectual assignment to fallen (ineffassign)
    • Line 66: warning: ineffectual assignment to fallen (ineffassign)
    • Line 73: warning: ineffectual assignment to fallen (ineffassign)
    • Line 80: warning: ineffectual assignment to fallen (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!