Preparing report...

Report for github.com/sanshirookazaki/csv2sql

A    Great!    Found 10 issues across 13 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!


gocyclo92%

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.


golint38%

Golint is a linter for Go source code.

    • csv2sql/db/scheme.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: exported type Result should have comment or be unexported (golint)
    • Line 19: warning: exported function GetColumns should have comment or be unexported (golint)
    • Line 37: warning: exported function GetTables should have comment or be unexported (golint)
    • csv2sql/util/slice.go
    • Line 10: warning: exported function FilterSpecific should have comment or be unexported (golint)
    • Line 19: warning: exported function DiffSlice should have comment or be unexported (golint)
    • Line 45: warning: exported function AddPrefix should have comment or be unexported (golint)
    • Line 52: warning: exported function ConnectEqual should have comment or be unexported (golint)
    • Line 63: warning: exported function SetNullValue should have comment or be unexported (golint)
    • Line 72: warning: exported function ToSnakeSlice should have comment or be unexported (golint)
    • Line 84: warning: exported function RemoveElements should have comment or be unexported (golint)
    • Line 98: warning: exported function Contains should have comment or be unexported (golint)
    • Line 107: warning: exported function EncloseMark should have comment or be unexported (golint)
    • csv2sql/util/string.go
    • Line 8: warning: exported function InitialIsInt should have comment or be unexported (golint)
    • Line 16: warning: exported function GetInitial should have comment or be unexported (golint)
    • Line 21: warning: exported function ToSnake should have comment or be unexported (golint)
    • csv2sql/csv/read.go
    • Line 9: warning: exported function GetColumns should have comment or be unexported (golint)
    • Line 24: warning: exported function ExistData should have comment or be unexported (golint)
    • csv2sql/db/conn.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: exported function Conn should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!