Preparing report...

Report for github.com/codewinks/cworm

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


gocyclo83%

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.

    • cworm/query.go
    • Line 446: warning: cyclomatic complexity 16 of function (*Query).fillModel() is high (> 15) (gocyclo)

golint66%

Golint is a linter for Go source code.

    • cworm/migrations.go
    • Line 18: warning: exported function Migrate should have comment or be unexported (golint)
    • Line 46: warning: exported function Make should have comment or be unexported (golint)
    • cworm/query.go
    • Line 449: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 528: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.

    • cworm/migrations.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/codewinks/go-colors (invalid package name: "") (ineffassign)
    • Line 59: warning: undeclared name: colors (ineffassign)
    • Line 59: warning: undeclared name: colors (ineffassign)
    • Line 82: warning: undeclared name: colors (ineffassign)
    • Line 97: warning: undeclared name: colors (ineffassign)
    • Line 97: warning: undeclared name: colors (ineffassign)
    • Line 114: warning: undeclared name: colors (ineffassign)
    • Line 114: warning: undeclared name: colors (ineffassign)
    • Line 177: warning: undeclared name: colors (ineffassign)
    • Line 274: warning: undeclared name: colors (ineffassign)
    • Line 279: warning: undeclared name: colors (ineffassign)
    • Line 13: warning: "github.com/codewinks/go-colors" imported but not used (ineffassign)
    • cworm/db.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/go-sql-driver/mysql (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!