Preparing report...

Report for github.com/timakin/gopli

A    Great!    Found 14 issues across 16 files

Tweet

gofmt87%

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!


gocyclo100%

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.

No problems detected. Good job!


golint25%

Golint is a linter for Go source code.

    • gopli/constants/db.go
    • Line 4: warning: exported const SELECT_TABLES_CMD_FORMAT should have comment (or a comment on this block) or be unexported (golint)
    • gopli/commands.go
    • Line 11: warning: exported var GlobalFlags should have comment or be unexported (golint)
    • Line 13: warning: exported var Commands should have comment or be unexported (golint)
    • Line 35: warning: exported function CommandNotFound should have comment or be unexported (golint)
    • gopli/version.go
    • Line 3: warning: exported const Name should have comment or be unexported (golint)
    • Line 4: warning: exported const Version should have comment or be unexported (golint)
    • gopli/lib/dir.go
    • Line 8: warning: exported function Isnil should have comment or be unexported (golint)
    • Line 12: warning: exported function DeleteTmpDir should have comment or be unexported (golint)
    • gopli/lib/toml.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 16: warning: exported function LoadTomlConf should have comment or be unexported (golint)
    • gopli/database/database.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 5: warning: should not use dot imports (golint)
    • Line 13: warning: exported type DBFetcher should have comment or be unexported (golint)
    • Line 17: warning: exported type DBInserter should have comment or be unexported (golint)
    • Line 22: warning: exported type DBConnector should have comment or be unexported (golint)
    • Line 32: warning: exported function CreateFetcher should have comment or be unexported (golint)
    • Line 55: warning: exported function CreateInserter should have comment or be unexported (golint)
    • gopli/database/mysql.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 7: warning: should not use dot imports (golint)
    • Line 15: warning: exported type MySQLFetcher should have comment or be unexported (golint)
    • Line 16: warning: exported type MySQLInserter should have comment or be unexported (golint)
    • Line 18: warning: exported method MySQLFetcher.Fetch should have comment or be unexported (golint)
    • Line 77: warning: exported method MySQLInserter.Clean should have comment or be unexported (golint)
    • Line 151: warning: exported method MySQLInserter.Insert should have comment or be unexported (golint)
    • gopli/lib/cpu.go
    • Line 8: warning: exported function SetupMultiCore should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!