Preparing report...

Report for github.com/dearcode/candy

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


gocyclo95%

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.


golint91%

Golint is a linter for Go source code.

    • candy/candy.go
    • Line 23: warning: exported const CmdExit should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported type Cmd should have comment or be unexported (golint)
    • candy/util/log/log.go
    • Line 18: warning: exported const LOG_FATAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported function SetLevel should have comment or be unexported (golint)
    • Line 35: warning: exported function GetLogLevel should have comment or be unexported (golint)
    • Line 39: warning: exported function Info should have comment or be unexported (golint)
    • Line 43: warning: exported function Infof should have comment or be unexported (golint)
    • Line 47: warning: exported function Debug should have comment or be unexported (golint)
    • Line 51: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 55: warning: exported function Warning should have comment or be unexported (golint)
    • Line 59: warning: exported function Warningf should have comment or be unexported (golint)
    • Line 63: warning: exported function Error should have comment or be unexported (golint)
    • Line 67: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 71: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 76: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 81: warning: exported function SetLevelByString should have comment or be unexported (golint)
    • Line 85: warning: exported function SetColor should have comment or be unexported (golint)
    • Line 133: warning: exported function StringToLogLevel should have comment or be unexported (golint)
    • Line 151: warning: exported function LogTypeToString should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!