Preparing report...

Report for github.com/Zekiee/sqlparser

(v0.0.0-20201126102006-4e768483a5d0)

A+    Excellent!    Found 10 issues across 36 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


gocyclo83%

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.

    • token.go
    • Line 451: warning: cyclomatic complexity 48 of function (*Tokenizer).Scan() is high (> 15) (gocyclo)
    • ast.go
    • Line 1000: warning: cyclomatic complexity 44 of function (*ColumnType).SQLType() is high (> 15) (gocyclo)
    • Line 912: warning: cyclomatic complexity 20 of function (*ColumnType).Format() is high (> 15) (gocyclo)
    • analyzer.go
    • Line 276: warning: cyclomatic complexity 19 of function ExtractSetValues() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 17 of function Preview() is high (> 15) (gocyclo)

ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words

    • dependency/sqltypes/value.go
    • Line 51: warning: "cannonical" is a misspelling of "canonical" (misspell)
    • Line 129: warning: "representaion" is a misspelling of "representation" (misspell)
    • Line 172: warning: "represenation" is a misspelling of "representation" (misspell)