Preparing report...

Report for github.com/matrix-profile-foundation/go-matrixprofile

A+    Excellent!    Found 9 issues across 21 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.


golint85%

Golint is a linter for Go source code.

    • go-matrixprofile/matrixprofile.go
    • Line 229: warning: exported type MPDistOpts should have comment or be unexported (golint)
    • Line 234: warning: exported function NewMPDistOpts should have comment or be unexported (golint)
    • Line 340: warning: exported type Algo should have comment or be unexported (golint)
    • Line 343: warning: exported const AlgoSTOMP should have comment (or a comment on this block) or be unexported (golint)
    • Line 1015: warning: don't use underscores in Go names; var c_cmp should be cCmp (golint)
    • Line 1080: warning: don't use underscores in Go names; var c_cmp should be cCmp (golint)
    • Line 1152: warning: don't use underscores in Go names; var c_cmp should be cCmp (golint)
    • go-matrixprofile/util/util.go
    • Line 99: warning: exported function MuInvN should have comment or be unexported (golint)
    • Line 105: warning: don't use underscores in Go names; var mu_a should be muA (golint)
    • Line 139: warning: exported function Sum2s should have comment or be unexported (golint)
    • Line 172: warning: exported function BinarySplit should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!