Preparing report...

Report for github.com/rwxrob/cmdbox

A+    Excellent!    Found 13 issues across 53 files

Tweet

gofmt98%

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!


gocyclo96%

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.

    • cmdbox/fmt/emph.go
    • Line 85: warning: cyclomatic complexity 31 of function Emph() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 31 of function Plain() is high (> 15) (gocyclo)
    • Line 187: warning: cyclomatic complexity 16 of function Emphasize() is high (> 15) (gocyclo)

golint86%

Golint is a linter for Go source code.

    • cmdbox/comp.go
    • Line 33: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • cmdbox/comp/time.go
    • Line 7: warning: comment on exported var MonthNamesLower should be of the form "MonthNamesLower ..." (golint)
    • Line 23: warning: comment on exported var MonthNamesUpper should be of the form "MonthNamesUpper ..." (golint)
    • Line 39: warning: comment on exported var MonthNames should be of the form "MonthNames ..." (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!


misspell86%

Misspell Finds commonly misspelled English words

    • cmdbox/fmt/emph.go
    • Line 14: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 49: warning: "preceeding" is a misspelling of "preceding" (misspell)
    • Line 70: warning: "respectivly" is a misspelling of "respectively" (misspell)
    • cmdbox/command.go
    • Line 99: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 164: warning: "gauranteed" is a misspelling of "guaranteed" (misspell)
    • Line 167: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 302: warning: "commiting" is a misspelling of "committing" (misspell)
    • Line 449: warning: "gauranteed" is a misspelling of "guaranteed" (misspell)