Preparing report...

Report for github.com/acoshift/pgsql

A+    Excellent!    Found 13 issues across 34 files

Tweet

gofmt97%

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!


gocyclo91%

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.


golint70%

Golint is a linter for Go source code.

    • pgsql/pgmodel/filter.go
    • Line 9: warning: exported type Cond should have comment or be unexported (golint)
    • Line 17: warning: exported type Filter should have comment or be unexported (golint)
    • Line 21: warning: exported type FilterFunc should have comment or be unexported (golint)
    • Line 23: warning: exported method FilterFunc.Apply should have comment or be unexported (golint)
    • Line 25: warning: exported function Equal should have comment or be unexported (golint)
    • Line 31: warning: exported function Where should have comment or be unexported (golint)
    • Line 38: warning: exported function Having should have comment or be unexported (golint)
    • Line 45: warning: exported function OrderBy should have comment or be unexported (golint)
    • Line 52: warning: exported function Limit should have comment or be unexported (golint)
    • Line 59: warning: exported function Offset should have comment or be unexported (golint)
    • pgsql/pgstmt/update.go
    • Line 10: warning: exported type UpdateStatement should have comment or be unexported (golint)
    • Line 24: warning: exported type Set should have comment or be unexported (golint)
    • pgsql/pgstmt/result.go
    • Line 11: warning: exported type Result should have comment or be unexported (golint)
    • Line 20: warning: exported method Result.SQL should have comment or be unexported (golint)
    • Line 24: warning: exported method Result.QueryRow should have comment or be unexported (golint)
    • Line 28: warning: exported method Result.Query should have comment or be unexported (golint)
    • Line 32: warning: exported method Result.Exec should have comment or be unexported (golint)
    • Line 36: warning: exported method Result.QueryRowContext should have comment or be unexported (golint)
    • Line 40: warning: exported method Result.QueryContext should have comment or be unexported (golint)
    • Line 44: warning: exported method Result.ExecContext should have comment or be unexported (golint)
    • Line 48: warning: exported method Result.QueryRowWith should have comment or be unexported (golint)
    • Line 52: warning: exported method Result.QueryWith should have comment or be unexported (golint)
    • Line 56: warning: exported method Result.ExecWith should have comment or be unexported (golint)
    • Line 60: warning: exported method Result.IterWith should have comment or be unexported (golint)
    • pgsql/pgstmt/select.go
    • Line 41: warning: exported type Distinct should have comment or be unexported (golint)
    • Line 45: warning: exported type Values should have comment or be unexported (golint)
    • Line 50: warning: exported type OrderBy should have comment or be unexported (golint)
    • Line 57: warning: exported type Join should have comment or be unexported (golint)
    • pgsql/iter.go
    • Line 8: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 10: warning: exported type Iterator should have comment or be unexported (golint)
    • Line 17: warning: exported function Iter should have comment or be unexported (golint)
    • Line 23: warning: exported function IterContext 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!