Preparing report...

Report for github.com/google/badwolf

(v0.9.0)

A+    Excellent!    Found 15 issues across 65 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!


gofmt93%

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


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.

    • io/io_test.go
    • Line 78: warning: cyclomatic complexity 16 of function TestSerializationContents() is high (> 15) (gocyclo)
    • bql/planner/planner.go
    • Line 478: warning: cyclomatic complexity 36 of function (*queryPlan).filterOnExistence() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 19 of function (*queryPlan).processClause() is high (> 15) (gocyclo)
    • Line 840: warning: cyclomatic complexity 19 of function (*constructPlan).processPredicateObjectPair() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 17 of function (*queryPlan).addSpecifiedData() is high (> 15) (gocyclo)
    • Line 600: warning: cyclomatic complexity 17 of function (*queryPlan).projectAndGroupBy() is high (> 15) (gocyclo)
    • bql/planner/planner_test.go
    • Line 606: warning: cyclomatic complexity 31 of function TestPlannerConstructAddsCorrectTriples() is high (> 15) (gocyclo)
    • Line 98: warning: cyclomatic complexity 17 of function insertAndDeleteTest() is high (> 15) (gocyclo)
    • bql/table/table.go
    • Line 593: warning: cyclomatic complexity 19 of function (*Table).fullGroupRangeReduce() is high (> 15) (gocyclo)
    • Line 355: warning: cyclomatic complexity 17 of function rowLess() is high (> 15) (gocyclo)
    • Line 679: warning: cyclomatic complexity 16 of function (*Table).Reduce() is high (> 15) (gocyclo)
    • bql/planner/data_access.go
    • Line 108: warning: cyclomatic complexity 65 of function simpleFetch() is high (> 15) (gocyclo)
    • Line 465: warning: cyclomatic complexity 46 of function tripleToRow() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 23 of function addTriples() is high (> 15) (gocyclo)
    • bql/lexer/lexer.go
    • Line 136: warning: cyclomatic complexity 52 of function (TokenType).String() is high (> 15) (gocyclo)
    • Line 460: warning: cyclomatic complexity 38 of function lexKeyword() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 19 of function lexToken() is high (> 15) (gocyclo)
    • bql/semantic/hooks.go
    • Line 563: warning: cyclomatic complexity 26 of function whereObjectClause() is high (> 15) (gocyclo)
    • Line 491: warning: cyclomatic complexity 20 of function wherePredicateClause() is high (> 15) (gocyclo)
    • Line 735: warning: cyclomatic complexity 16 of function groupByBindingsChecker() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words