Preparing report...

Report for github.com/gocraft/dbr

A+    Excellent!    Found 8 issues across 49 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!


golint83%

Golint is a linter for Go source code.

    • dbr/transaction_test.go
    • Line 18: warning: don't use underscores in Go names; var elem_count should be elemCount (golint)
    • Line 21: warning: don't use underscores in Go names; var elem_count should be elemCount (golint)
    • dbr/update.go
    • Line 26: warning: exported type UpdateBuilder should have comment or be unexported (golint)
    • Line 28: warning: exported method UpdateStmt.Build should have comment or be unexported (golint)
    • Line 197: warning: exported method UpdateStmt.Limit should have comment or be unexported (golint)
    • Line 202: warning: exported method UpdateStmt.Comment should have comment or be unexported (golint)
    • Line 207: warning: exported method UpdateStmt.Exec should have comment or be unexported (golint)
    • Line 211: warning: exported method UpdateStmt.ExecContext should have comment or be unexported (golint)
    • Line 215: warning: exported method UpdateStmt.LoadContext should have comment or be unexported (golint)
    • Line 220: warning: exported method UpdateStmt.Load should have comment or be unexported (golint)
    • dbr/util.go
    • Line 9: warning: exported var NameMapping should have comment or be unexported (golint)
    • dbr/delete.go
    • Line 24: warning: exported type DeleteBuilder should have comment or be unexported (golint)
    • Line 26: warning: exported method DeleteStmt.Build should have comment or be unexported (golint)
    • Line 124: warning: exported method DeleteStmt.Limit should have comment or be unexported (golint)
    • Line 129: warning: exported method DeleteStmt.Comment should have comment or be unexported (golint)
    • Line 134: warning: exported method DeleteStmt.Exec should have comment or be unexported (golint)
    • Line 138: warning: exported method DeleteStmt.ExecContext should have comment or be unexported (golint)
    • dbr/index_hints.go
    • Line 19: warning: exported function UseIndex should have comment or be unexported (golint)
    • Line 23: warning: exported function IgnoreIndex should have comment or be unexported (golint)
    • Line 27: warning: exported function ForceIndex should have comment or be unexported (golint)
    • dbr/insert.go
    • Line 29: warning: exported type InsertBuilder should have comment or be unexported (golint)
    • Line 31: warning: exported method InsertStmt.Build should have comment or be unexported (golint)
    • Line 159: warning: exported method InsertStmt.Columns should have comment or be unexported (golint)
    • Line 237: warning: exported method InsertStmt.Exec should have comment or be unexported (golint)
    • Line 241: warning: exported method InsertStmt.ExecContext should have comment or be unexported (golint)
    • Line 257: warning: exported method InsertStmt.LoadContext should have comment or be unexported (golint)
    • Line 262: warning: exported method InsertStmt.Load should have comment or be unexported (golint)
    • dbr/load.go
    • Line 13: warning: exported function InterfaceLoader should have comment or be unexported (golint)
    • dbr/select.go
    • Line 39: warning: exported type SelectBuilder should have comment or be unexported (golint)
    • Line 41: warning: exported method SelectStmt.Build should have comment or be unexported (golint)
    • Line 280: warning: exported method SelectStmt.Distinct should have comment or be unexported (golint)
    • Line 317: warning: exported method SelectStmt.OrderAsc should have comment or be unexported (golint)
    • Line 322: warning: exported method SelectStmt.OrderDesc should have comment or be unexported (golint)
    • Line 333: warning: exported method SelectStmt.Limit should have comment or be unexported (golint)
    • Line 338: warning: exported method SelectStmt.Offset should have comment or be unexported (golint)
    • Line 366: warning: exported method SelectStmt.Comment should have comment or be unexported (golint)
    • Line 409: warning: exported method SelectStmt.RowsContext should have comment or be unexported (golint)
    • Line 414: warning: exported method SelectStmt.LoadOneContext should have comment or be unexported (golint)
    • Line 433: warning: exported method SelectStmt.LoadContext should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!