Preparing report...

Report for github.com/halimath/depot

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


gocyclo92%

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.


golint77%

Golint is a linter for Go source code.

    • depot/dialect.go
    • Line 39: warning: exported type DefaultClauseBuilder should have comment or be unexported (golint)
    • Line 46: warning: exported method DefaultClauseBuilder.WriteString should have comment or be unexported (golint)
    • Line 47: warning: exported method DefaultClauseBuilder.WriteRune should have comment or be unexported (golint)
    • Line 48: warning: exported method DefaultClauseBuilder.SQL should have comment or be unexported (golint)
    • Line 49: warning: exported method DefaultClauseBuilder.Args should have comment or be unexported (golint)
    • Line 50: warning: exported method DefaultClauseBuilder.BindParameter should have comment or be unexported (golint)
    • Line 57: warning: exported type DefaultDialect should have comment or be unexported (golint)
    • Line 62: warning: exported method DefaultDialect.NewClauseBuilder should have comment or be unexported (golint)
    • depot/internal/generate/mapping.go
    • Line 46: warning: exported method NamedType.Expr should have comment or be unexported (golint)
    • Line 50: warning: exported method NamedType.AssignNonNil should have comment or be unexported (golint)
    • Line 70: warning: exported method ByteSlice.Expr should have comment or be unexported (golint)
    • Line 74: warning: exported method ByteSlice.AssignNonNil should have comment or be unexported (golint)
    • Line 80: warning: exported type PointerType should have comment or be unexported (golint)
    • Line 86: warning: exported method PointerType.Expr should have comment or be unexported (golint)
    • Line 90: warning: exported method PointerType.AssignNonNil should have comment or be unexported (golint)
    • depot/example/repo/messagerepo.go
    • Line 25: warning: exported function NewMessageRepo should have comment or be unexported (golint)
    • Line 31: warning: exported method MessageRepo.FindByText should have comment or be unexported (golint)
    • depot/example/repo/messagerepo_gen.go
    • Line 22: warning: exported type MessageRepo should have comment or be unexported (golint)
    • Line 26: warning: exported method MessageRepo.Begin should have comment or be unexported (golint)
    • Line 31: warning: exported method MessageRepo.Commit should have comment or be unexported (golint)
    • Line 36: warning: exported method MessageRepo.Rollback should have comment or be unexported (golint)
    • Line 149: warning: exported method MessageRepo.LoadByID should have comment or be unexported (golint)
    • Line 174: warning: exported method MessageRepo.Insert should have comment or be unexported (golint)
    • Line 192: warning: exported method MessageRepo.Update should have comment or be unexported (golint)
    • Line 201: warning: exported method MessageRepo.DeleteByID should have comment or be unexported (golint)
    • Line 205: warning: exported method MessageRepo.Delete should have comment or be unexported (golint)
    • depot/acceptance_test/messagerepo_gen.go
    • Line 21: warning: exported type MessageRepo should have comment or be unexported (golint)
    • Line 25: warning: exported method MessageRepo.Begin should have comment or be unexported (golint)
    • Line 30: warning: exported method MessageRepo.Commit should have comment or be unexported (golint)
    • Line 35: warning: exported method MessageRepo.Rollback should have comment or be unexported (golint)
    • Line 148: warning: exported method MessageRepo.LoadByID should have comment or be unexported (golint)
    • Line 173: warning: exported method MessageRepo.Insert should have comment or be unexported (golint)
    • Line 191: warning: exported method MessageRepo.Update should have comment or be unexported (golint)
    • Line 200: warning: exported method MessageRepo.DeleteByID should have comment or be unexported (golint)
    • Line 204: warning: exported method MessageRepo.Delete 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.

    • depot/acceptance_test/messagerepo_gen.go
    • Line 40: warning: undeclared name: Message (ineffassign)
    • Line 116: warning: undeclared name: Message (ineffassign)
    • Line 148: warning: undeclared name: Message (ineffassign)
    • Line 161: warning: undeclared name: Message (ineffassign)
    • Line 173: warning: undeclared name: Message (ineffassign)
    • Line 191: warning: undeclared name: Message (ineffassign)
    • Line 204: warning: undeclared name: Message (ineffassign)
    • Line 105: warning: undeclared name: Message (ineffassign)
    • Line 125: warning: undeclared name: Message (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!