Preparing report...

Report for github.com/gonum/tools

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


gocyclo90%

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.

    • tools/autofd/autofd.go
    • Line 214: warning: cyclomatic complexity 29 of function (*generator).expr() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 17 of function newGenerator() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • tools/autofd/internal/testfunc/funcs.go
    • Line 17: warning: exported function F1 should have comment or be unexported (golint)
    • Line 21: warning: exported function F2 should have comment or be unexported (golint)
    • Line 25: warning: exported function F3 should have comment or be unexported (golint)
    • Line 29: warning: exported function F4 should have comment or be unexported (golint)
    • Line 33: warning: exported function F5 should have comment or be unexported (golint)
    • Line 37: warning: exported function F6 should have comment or be unexported (golint)
    • Line 41: warning: exported function F7 should have comment or be unexported (golint)
    • Line 45: warning: exported function F8 should have comment or be unexported (golint)
    • Line 49: warning: exported function F9 should have comment or be unexported (golint)
    • Line 53: warning: exported type T1 should have comment or be unexported (golint)
    • Line 55: warning: exported method T1.F should have comment or be unexported (golint)
    • Line 59: warning: exported type T2 should have comment or be unexported (golint)
    • Line 61: warning: exported function ErrF1 should have comment or be unexported (golint)
    • Line 65: warning: exported function ErrF2 should have comment or be unexported (golint)
    • Line 69: warning: exported function ErrF3 should have comment or be unexported (golint)
    • Line 73: warning: exported function ErrF4 should have comment or be unexported (golint)
    • Line 77: warning: exported function ErrF5 should have comment or be unexported (golint)
    • Line 81: warning: exported function ErrF6 should have comment or be unexported (golint)
    • Line 88: warning: exported function ErrF7 should have comment or be unexported (golint)
    • Line 98: warning: exported function ErrF8 should have comment or be unexported (golint)
    • Line 107: warning: exported type ErrT1 should have comment or be unexported (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!