Preparing report...

Report for github.com/pupizoid/ormlite

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


gocyclo85%

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.

    • ormlite/ormlite.go
    • Line 892: warning: cyclomatic complexity 59 of function Count() is high (> 15) (gocyclo)
    • Line 645: warning: cyclomatic complexity 47 of function QuerySliceContext() is high (> 15) (gocyclo)
    • Line 239: warning: cyclomatic complexity 31 of function queryWithOptions() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 19 of function loadManyToManyRelation() is high (> 15) (gocyclo)
    • Line 560: warning: cyclomatic complexity 18 of function QueryStructContext() is high (> 15) (gocyclo)

golint57%

Golint is a linter for Go source code.

    • ormlite/model.go
    • Line 13: warning: exported type IModel should have comment or be unexported (golint)
    • Line 17: warning: exported type Expression should have comment or be unexported (golint)
    • ormlite/ormlite.go
    • Line 53: warning: exported type Greater should have comment or be unexported (golint)
    • Line 55: warning: exported type Less should have comment or be unexported (golint)
    • Line 57: warning: exported type GreaterOrEqual should have comment or be unexported (golint)
    • Line 59: warning: exported type LessOrEqual should have comment or be unexported (golint)
    • Line 61: warning: exported type NotEqual should have comment or be unexported (golint)
    • Line 63: warning: exported type BitwiseAND should have comment or be unexported (golint)
    • Line 65: warning: exported type BitwiseANDStrict should have comment or be unexported (golint)
    • Line 67: warning: exported type StrictString should have comment or be unexported (golint)
    • Line 892: warning: exported function Count should have comment or be unexported (golint)
    • ormlite/upsert.go
    • Line 18: warning: exported function UpsertContext should have comment or be unexported (golint)
    • Line 27: warning: exported function InsertContext should have comment or be unexported (golint)
    • Line 284: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 297: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 448: warning: exported function IsUniqueViolation should have comment or be unexported (golint)
    • Line 457: warning: exported function IsNotFound should have comment or be unexported (golint)
    • Line 461: warning: exported function IsFKError should have comment or be unexported (golint)
    • Line 470: warning: exported function IsNotNullError should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign71%

IneffAssign detects ineffectual assignments in Go code.

    • ormlite/ormlite.go
    • Line 615: warning: ineffectual assignment to slice (ineffassign)
    • Line 684: warning: ineffectual assignment to slice (ineffassign)
    • Line 914: warning: ineffectual assignment to slice (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!