Preparing report...

Report for github.com/nektro/go.dbstorage

A    Great!    Found 6 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.


golint14%

Golint is a linter for Go source code.

    • go.dbstorage/mysql.go
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 18: warning: should not use dot imports (golint)
    • go.dbstorage/postgres.go
    • Line 18: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 19: warning: should not use dot imports (golint)
    • go.dbstorage/sqlite.go
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 20: warning: should not use dot imports (golint)
    • Line 23: warning: exported type DbProxy should have comment or be unexported (golint)
    • Line 27: warning: exported type PragmaTableInfo should have comment or be unexported (golint)
    • Line 36: warning: exported function ConnectSqlite should have comment or be unexported (golint)
    • Line 52: warning: exported method DbProxy.Ping should have comment or be unexported (golint)
    • Line 56: warning: exported method DbProxy.Close should have comment or be unexported (golint)
    • Line 60: warning: exported method DbProxy.DB should have comment or be unexported (golint)
    • Line 64: warning: exported method DbProxy.DriverName should have comment or be unexported (golint)
    • Line 68: warning: exported method DbProxy.TagName should have comment or be unexported (golint)
    • Line 72: warning: exported method DbProxy.IntPrimaryKey should have comment or be unexported (golint)
    • Line 76: warning: exported method DbProxy.TypeForType should have comment or be unexported (golint)
    • Line 93: warning: exported method DbProxy.CreateTable should have comment or be unexported (golint)
    • Line 107: warning: exported method DbProxy.DoesTableExist should have comment or be unexported (golint)
    • Line 113: warning: exported method DbProxy.QueryTableInfo should have comment or be unexported (golint)
    • Line 125: warning: exported method DbProxy.QueryColumnList should have comment or be unexported (golint)
    • Line 133: warning: exported method DbProxy.QueryNextID should have comment or be unexported (golint)
    • Line 143: warning: exported method DbProxy.QueryPrepared should have comment or be unexported (golint)
    • Line 159: warning: exported method DbProxy.DropTable should have comment or be unexported (golint)
    • Line 163: warning: exported method DbProxy.QueryRowCount should have comment or be unexported (golint)
    • Line 190: warning: exported method DbProxy.Build should have comment or be unexported (golint)
    • go.dbstorage/database.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 18: warning: exported type Inner should have comment or be unexported (golint)
    • Line 35: warning: exported type Outer should have comment or be unexported (golint)
    • Line 39: warning: exported method Outer.CreateTableStruct 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!