Preparing report...

Report for github.com/araddon/qlbridge

A    Great!    Found 88 issues across 178 files

Tweet

gofmt99%

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!


gocyclo82%

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.

    • qlbridge/exec/groupby.go
    • Line 180: warning: cyclomatic complexity 21 of function (*GroupByFinal).Run() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 19 of function (*GroupBy).Run() is high (> 15) (gocyclo)
    • qlbridge/lex/lexer.go
    • Line 2331: warning: cyclomatic complexity 64 of function LexExpression() is high (> 15) (gocyclo)
    • Line 1408: warning: cyclomatic complexity 33 of function lexIdentifierOfTypeNoWs() is high (> 15) (gocyclo)
    • Line 834: warning: cyclomatic complexity 33 of function LexStatement() is high (> 15) (gocyclo)
    • Line 1903: warning: cyclomatic complexity 20 of function LexTableReferences() is high (> 15) (gocyclo)
    • Line 999: warning: cyclomatic complexity 19 of function LexValue() is high (> 15) (gocyclo)
    • Line 3138: warning: cyclomatic complexity 19 of function scanNumericOrDuration() is high (> 15) (gocyclo)
    • Line 2028: warning: cyclomatic complexity 16 of function LexJoinEntry() is high (> 15) (gocyclo)
    • qlbridge/plan/planner_select.go
    • Line 27: warning: cyclomatic complexity 22 of function (*PlannerDefault).WalkSelect() is high (> 15) (gocyclo)
    • Line 171: warning: cyclomatic complexity 21 of function (*PlannerDefault).WalkSourceSelect() is high (> 15) (gocyclo)
    • qlbridge/value/value.go
    • Line 288: warning: cyclomatic complexity 61 of function NewValue() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 22 of function (ValueType).String() is high (> 15) (gocyclo)
    • Line 238: warning: cyclomatic complexity 22 of function ValueFromString() is high (> 15) (gocyclo)
    • qlbridge/lex/dialect_sql.go
    • Line 761: warning: cyclomatic complexity 27 of function LexDdlTableColumn() is high (> 15) (gocyclo)
    • Line 661: warning: cyclomatic complexity 19 of function LexDdlAlterColumn() is high (> 15) (gocyclo)
    • qlbridge/vm/vm.go
    • Line 299: warning: cyclomatic complexity 175 of function evalBinary() is high (> 15) (gocyclo)
    • Line 957: warning: cyclomatic complexity 27 of function operateNumbers() is high (> 15) (gocyclo)
    • Line 1132: warning: cyclomatic complexity 25 of function operateIntVals() is high (> 15) (gocyclo)
    • Line 840: warning: cyclomatic complexity 25 of function walkTernary() is high (> 15) (gocyclo)
    • Line 69: warning: cyclomatic complexity 21 of function resolveIncludesDepth() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 19 of function evalDepth() is high (> 15) (gocyclo)
    • Line 236: warning: cyclomatic complexity 16 of function walkBoolean() is high (> 15) (gocyclo)
    • qlbridge/expr/parse.go
    • Line 657: warning: cyclomatic complexity 30 of function (*tree).Func() is high (> 15) (gocyclo)
    • Line 391: warning: cyclomatic complexity 21 of function (*tree).cInner() is high (> 15) (gocyclo)
    • Line 583: warning: cyclomatic complexity 17 of function (*tree).v() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

An error occurred while running this test (exit status 3)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)