Preparing report...

Report for github.com/goapt/dbunit

A    Great!    Found 9 issues across 22 files

Tweet

gofmt95%

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!


gocyclo95%

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.


golint68%

Golint is a linter for Go source code.

    • dbunit/fixtures/testfixtures.go
    • Line 182: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 188: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • dbunit/dbunit.go
    • Line 10: warning: exported function Run should have comment or be unexported (golint)
    • Line 17: warning: exported type DBUnit should have comment or be unexported (golint)
    • Line 21: warning: exported method DBUnit.NewDatabase should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • dbunit/log.go
    • Line 5: warning: exported var Debug should have comment or be unexported (golint)
    • dbunit/testing.go
    • Line 14: warning: exported type Testing should have comment or be unexported (golint)
    • Line 21: warning: exported function NewTest should have comment or be unexported (golint)
    • Line 42: warning: exported method Testing.DB should have comment or be unexported (golint)
    • Line 46: warning: exported method Testing.Schema should have comment or be unexported (golint)
    • Line 50: warning: exported method Testing.Drop should have comment or be unexported (golint)
    • Line 57: warning: exported method Testing.Load should have comment or be unexported (golint)
    • dbunit/unit.go
    • Line 13: warning: exported function PluckWithFixture should have comment or be unexported (golint)
    • Line 32: warning: exported function Pluck should have comment or be unexported (golint)
    • dbunit/fixtures/template.go
    • Line 9: warning: exported type Template should have comment or be unexported (golint)
    • Line 17: warning: exported function NewTemplate should have comment or be unexported (golint)
    • Line 48: warning: exported method Template.Parse should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!