Preparing report...

Report for github.com/dmmcquay/chipmunk

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

    • chipmunk/api.go
    • Line 182: warning: cyclomatic complexity 32 of function (*Server).tranx() is high (> 15) (gocyclo)

golint54%

Golint is a linter for Go source code.

    • chipmunk/api.go
    • Line 323: warning: don't use underscores in Go names; var category_id should be categoryID (golint)
    • Line 330: warning: don't use underscores in Go names; var user_id should be userID (golint)
    • chipmunk/db.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: exported type DB should have comment or be unexported (golint)
    • Line 14: warning: exported function NewDB should have comment or be unexported (golint)
    • chipmunk/server.go
    • Line 33: warning: exported var Version should have comment or be unexported (golint)
    • Line 43: warning: exported function NewFailure should have comment or be unexported (golint)
    • Line 50: warning: exported type Server should have comment or be unexported (golint)
    • Line 62: warning: exported function NewServer should have comment or be unexported (golint)
    • chipmunk/tranx.go
    • Line 13: warning: don't use underscores in Go names; struct field User_ID should be UserID (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Category_ID should be CategoryID (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • chipmunk/server_test.go
    • Line 20: warning: ineffectual assignment to err (ineffassign)
    • Line 34: warning: ineffectual assignment to err (ineffassign)
    • Line 48: warning: ineffectual assignment to err (ineffassign)
    • Line 69: warning: ineffectual assignment to err (ineffassign)
    • Line 83: warning: ineffectual assignment to err (ineffassign)
    • Line 97: warning: ineffectual assignment to err (ineffassign)
    • Line 110: warning: ineffectual assignment to err (ineffassign)
    • Line 131: warning: ineffectual assignment to err (ineffassign)
    • Line 144: warning: ineffectual assignment to err (ineffassign)
    • Line 157: warning: ineffectual assignment to err (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!