Preparing report...

Report for github.com/Kunde21/numgo

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


gocyclo74%

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.

    • numgo/bool.go
    • Line 405: warning: cyclomatic complexity 16 of function (*Arrayb).Append() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 16 of function (*Arrayb).String() is high (> 15) (gocyclo)
    • numgo/map.go
    • Line 71: warning: cyclomatic complexity 19 of function (*Array64).collapse() is high (> 15) (gocyclo)
    • numgo/boolOps.go
    • Line 89: warning: cyclomatic complexity 18 of function (*Array64).compValid() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 18 of function (*Arrayb).compValid() is high (> 15) (gocyclo)
    • numgo/numgo.go
    • Line 208: warning: cyclomatic complexity 17 of function (*Array64).String() is high (> 15) (gocyclo)

golint85%

Golint is a linter for Go source code.

    • numgo/internal/arithmetic_amd64.go
    • Line 6: warning: exported var AvxSupt should have its own declaration (golint)
    • Line 15: warning: exported function AddC should have comment or be unexported (golint)
    • Line 17: warning: exported function SubtrC should have comment or be unexported (golint)
    • Line 19: warning: exported function MultC should have comment or be unexported (golint)
    • Line 21: warning: exported function DivC should have comment or be unexported (golint)
    • Line 23: warning: exported function Add should have comment or be unexported (golint)
    • Line 25: warning: exported function Vadd should have comment or be unexported (golint)
    • Line 27: warning: exported function Hadd should have comment or be unexported (golint)
    • Line 29: warning: exported function Subtr should have comment or be unexported (golint)
    • Line 31: warning: exported function Mult should have comment or be unexported (golint)
    • Line 33: warning: exported function Div should have comment or be unexported (golint)
    • Line 35: warning: exported function Fma12 should have comment or be unexported (golint)
    • Line 37: warning: exported function Fma21 should have comment or be unexported (golint)
    • numgo/error.go
    • Line 95: warning: error should be the last type when returning multiple items (golint)
    • Line 199: warning: error should be the last type when returning multiple items (golint)
    • numgo/matmul.go
    • Line 29: warning: exported method Array64.MatProd should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell85%

Misspell Finds commonly misspelled English words