Preparing report...

Report for github.com/ohkrab/krab

(v0.3.1)

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


gocyclo100%

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.

No problems detected. Good job!


golint58%

Golint is a linter for Go source code.

    • krab/krab/version.go
    • Line 4: warning: exported const InfoName should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported var InfoVersion should have comment or be unexported (golint)
    • krab/cli/app.go
    • Line 9: warning: exported type Command should have comment or be unexported (golint)
    • Line 11: warning: exported type App should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method App.Run should have comment or be unexported (golint)
    • Line 30: warning: exported method App.RegisterCmd should have comment or be unexported (golint)
    • krab/krabdb/transaction.go
    • Line 10: warning: exported type TransactionExecerContext should have comment or be unexported (golint)
    • Line 40: warning: exported method Transaction.Rollback should have comment or be unexported (golint)
    • Line 44: warning: exported method Transaction.Commit should have comment or be unexported (golint)
    • Line 48: warning: exported method Transaction.ExecContext should have comment or be unexported (golint)
    • Line 62: warning: exported method NullTransaction.Rollback should have comment or be unexported (golint)
    • Line 66: warning: exported method NullTransaction.Commit should have comment or be unexported (golint)
    • Line 70: warning: exported method NullTransaction.ExecContext should have comment or be unexported (golint)
    • krab/krab/action_migrate_up.go
    • Line 19: warning: exported method ActionMigrateUp.Help should have comment or be unexported (golint)
    • Line 30: warning: exported method ActionMigrateUp.Synopsis should have comment or be unexported (golint)
    • Line 67: warning: comment on exported method ActionMigrateUp.Do should be of the form "Do ..." (golint)
    • krab/cli/ui.go
    • Line 14: warning: exported function DefaultUI should have comment or be unexported (golint)
    • krab/krab/action_migrate_down.go
    • Line 20: warning: exported method ActionMigrateDown.Help should have comment or be unexported (golint)
    • Line 31: warning: exported method ActionMigrateDown.Synopsis should have comment or be unexported (golint)
    • krab/krab/action_version.go
    • Line 12: warning: exported method ActionVersion.Help should have comment or be unexported (golint)
    • Line 19: warning: exported method ActionVersion.Synopsis should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!