Preparing report...

Report for github.com/asdine/storm

A+    Excellent!    Found 10 issues across 60 files

Tweet

gofmt88%

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!


gocyclo93%

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.

    • storm/store.go
    • Line 161: warning: cyclomatic complexity 29 of function (*node).save() is high (> 15) (gocyclo)
    • storm/sink.go
    • Line 103: warning: cyclomatic complexity 27 of function (*sorter).compareValue() is high (> 15) (gocyclo)

golint98%

Golint is a linter for Go source code.

    • storm/sink.go
    • Line 150: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • storm/index/list_test.go
    • Line 56: warning: ineffectual assignment to err (ineffassign)
    • Line 60: warning: ineffectual assignment to err (ineffassign)
    • Line 66: warning: ineffectual assignment to err (ineffassign)
    • Line 95: warning: ineffectual assignment to err (ineffassign)
    • Line 98: warning: ineffectual assignment to err (ineffassign)
    • Line 100: warning: ineffectual assignment to err (ineffassign)
    • Line 109: warning: ineffectual assignment to err (ineffassign)
    • Line 110: warning: ineffectual assignment to err (ineffassign)
    • Line 111: warning: ineffectual assignment to err (ineffassign)
    • Line 112: warning: ineffectual assignment to err (ineffassign)
    • Line 113: warning: ineffectual assignment to err (ineffassign)
    • Line 118: warning: ineffectual assignment to err (ineffassign)
    • Line 123: warning: ineffectual assignment to err (ineffassign)
    • Line 130: warning: ineffectual assignment to err (ineffassign)
    • Line 169: warning: ineffectual assignment to err (ineffassign)
    • Line 175: warning: ineffectual assignment to err (ineffassign)
    • Line 184: warning: ineffectual assignment to err (ineffassign)
    • Line 294: warning: ineffectual assignment to err (ineffassign)
    • Line 299: warning: ineffectual assignment to err (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!