Preparing report...

Report for github.com/si3nloong/sqlike

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


gocyclo96%

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.

    • sqlike/sql/dialect/mysql/table.go
    • Line 167: warning: cyclomatic complexity 29 of function (*MySQL).AlterTable() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 25 of function (MySQL).CreateTable() is high (> 15) (gocyclo)

golint99%

Golint is a linter for Go source code.

    • sqlike/sql/expr/spatial.go
    • Line 10: warning: comment on exported function ST_GeomFromText should be of the form "ST_GeomFromText ..." (golint)
    • Line 12: warning: don't use underscores in Go names; func ST_GeomFromText should be STGeomFromText (golint)
    • Line 36: warning: comment on exported function ST_AsText should be of the form "ST_AsText ..." (golint)
    • Line 38: warning: don't use underscores in Go names; func ST_AsText should be STAsText (golint)
    • Line 57: warning: comment on exported function ST_IsValid should be of the form "ST_IsValid ..." (golint)
    • Line 59: warning: don't use underscores in Go names; func ST_IsValid should be STIsValid (golint)
    • Line 78: warning: comment on exported function ST_Distance should be of the form "ST_Distance ..." (golint)
    • Line 81: warning: don't use underscores in Go names; func ST_Distance should be STDistance (golint)
    • Line 101: warning: comment on exported function ST_Equals should be of the form "ST_Equals ..." (golint)
    • Line 103: warning: don't use underscores in Go names; func ST_Equals should be STEquals (golint)
    • Line 123: warning: comment on exported function ST_Intersects should be of the form "ST_Intersects ..." (golint)
    • Line 125: warning: don't use underscores in Go names; func ST_Intersects should be STIntersects (golint)
    • Line 145: warning: comment on exported function ST_Within should be of the form "ST_Within ..." (golint)
    • Line 147: warning: don't use underscores in Go names; func ST_Within should be STWithin (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!