Preparing report...

Report for github.com/rwxrob/cmdtab

A+    Excellent!    Found 6 issues across 29 files

Tweet

gofmt96%

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!


gocyclo89%

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.

    • cmdtab/format.go
    • Line 48: warning: cyclomatic complexity 31 of function Format() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 17 of function Emphasize() is high (> 15) (gocyclo)

golint86%

Golint is a linter for Go source code.

    • cmdtab/format.go
    • Line 148: warning: exported function Emphasize should have comment or be unexported (golint)
    • Line 331: warning: exported type Winsz should have comment or be unexported (golint)
    • Line 336: warning: exported var WinSize should have comment or be unexported (golint)
    • cmdtab/builtins.go
    • Line 47: warning: should omit 2nd value from range; this loop is equivalent to `for name := range ...` (golint)
    • Line 269: warning: don't use underscores in Go names; var _help_json should be _helpJSON (golint)
    • cmdtab/command.go
    • Line 9: warning: exported type Command should have comment or be unexported (golint)
    • Line 256: warning: exported method Command.UsageError should have comment or be unexported (golint)
    • Line 317: warning: exported method Command.Title should have comment or be unexported (golint)
    • cmdtab/doc.go
    • Line 1: warning: package comment should be of the form "Package cmdtab ..." (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

    • cmdtab/exec.go
    • Line 9: warning: "existance" is a misspelling of "existence" (misspell)
    • Line 25: warning: "existance" is a misspelling of "existence" (misspell)
    • cmdtab/format.go
    • Line 16: warning: "preceeding" is a misspelling of "preceding" (misspell)
    • Line 35: warning: "respectivly" is a misspelling of "respectively" (misspell)