Preparing report...

Report for github.com/SananGuliyev/sqlparser

A+    Excellent!    Found 9 issues across 35 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!


gocyclo80%

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.

    • sqlparser/ast.go
    • Line 1008: warning: cyclomatic complexity 44 of function (*ColumnType).SQLType() is high (> 15) (gocyclo)
    • Line 920: warning: cyclomatic complexity 20 of function (*ColumnType).Format() is high (> 15) (gocyclo)
    • sqlparser/analyzer.go
    • Line 276: warning: cyclomatic complexity 21 of function ExtractSetValues() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 17 of function Preview() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 16 of function StmtType() is high (> 15) (gocyclo)

golint97%

Golint is a linter for Go source code.

    • sqlparser/ast.go
    • Line 33: warning: exported const SQLModeStandard should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported var SQLMode should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!