Preparing report...

Report for github.com/PumpkinSeed/sqlfuzz

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


gocyclo81%

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.


golint50%

Golint is a linter for Go source code.

    • sqlfuzz/drivers/utils/sqlcommons.go
    • Line 14: warning: exported const DefaultTableCreateQueryKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported function MultiDescribeHelper should have comment or be unexported (golint)
    • Line 46: warning: exported function GetInsertionOrder should have comment or be unexported (golint)
    • Line 80: warning: exported function TestTable should have comment or be unexported (golint)
    • sqlfuzz/pkg/fuzzer/runner.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 76: warning: exported function RunMulti should have comment or be unexported (golint)
    • sqlfuzz/drivers/postgres/postgres.go
    • Line 1: warning: package comment should be of the form "Package postgres ..." (golint)
    • Line 14: warning: comment on exported const CreateTable should be of the form "CreateTable ..." (golint)
    • Line 71: warning: exported const PSQLDescribeTemplate should have comment (or a comment on this block) or be unexported (golint)
    • Line 144: warning: exported type Postgres should have comment or be unexported (golint)
    • Line 148: warning: exported function New should have comment or be unexported (golint)
    • Line 154: warning: exported method Postgres.ShowTables should have comment or be unexported (golint)
    • Line 170: warning: exported method Postgres.Connection should have comment or be unexported (golint)
    • Line 175: warning: exported method Postgres.Driver should have comment or be unexported (golint)
    • Line 179: warning: exported method Postgres.Insert should have comment or be unexported (golint)
    • Line 183: warning: comment on exported method Postgres.MapField should be of the form "MapField ..." (golint)
    • Line 222: warning: exported method Postgres.MultiDescribe should have comment or be unexported (golint)
    • Line 245: warning: exported method Postgres.Describe should have comment or be unexported (golint)
    • Line 257: warning: exported method Postgres.GetLatestColumnValue should have comment or be unexported (golint)
    • Line 277: warning: exported method Postgres.GetTestCase should have comment or be unexported (golint)
    • sqlfuzz/pkg/action/action.go
    • Line 1: warning: package comment should be of the form "Package action ..." (golint)
    • Line 18: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 22: warning: exported type SingleInsertParams should have comment or be unexported (golint)
    • Line 29: warning: exported type MultiInsertParams should have comment or be unexported (golint)
    • Line 36: warning: exported type SQLInsertInput should have comment or be unexported (golint)
    • Line 41: warning: exported method SQLInsertInput.Insert should have comment or be unexported (golint)
    • sqlfuzz/drivers/mysql/mysql.go
    • Line 1: warning: package comment should be of the form "Package mysql ..." (golint)
    • Line 14: warning: exported const MySQLDescribeTableQuery should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported function New should have comment or be unexported (golint)
    • Line 52: warning: exported method MySQL.ShowTables should have comment or be unexported (golint)
    • Line 200: warning: exported method MySQL.Describe should have comment or be unexported (golint)
    • Line 213: warning: exported method MySQL.MultiDescribe should have comment or be unexported (golint)
    • Line 236: warning: exported method MySQL.GetLatestColumnValue should have comment or be unexported (golint)
    • Line 256: warning: exported method MySQL.GetTestCase should have comment or be unexported (golint)
    • sqlfuzz/drivers/types/types.go
    • Line 9: warning: exported type FieldType should have comment or be unexported (golint)
    • Line 12: warning: exported const String should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type FKDescriptor should have comment or be unexported (golint)
    • Line 87: warning: exported type Testable 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!