Preparing report...

Report for github.com/cloudprivacylabs/opencypher

(v1.0.0-beta-11)

A+    Excellent!    Found 13 issues across 23 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!


gofmt95%

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


gocyclo60%

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.

    • datefuncs.go
    • Line 34: warning: cyclomatic complexity 20 of function dateFunc() is high (> 15) (gocyclo)
    • compiler_test.go
    • Line 38: warning: cyclomatic complexity 20 of function TestBasicMatch() is high (> 15) (gocyclo)
    • arithmeticeval.go
    • Line 382: warning: cyclomatic complexity 39 of function (*addOrSubtractExpression).Evaluate() is high (> 15) (gocyclo)
    • Line 200: warning: cyclomatic complexity 23 of function (*multiplyDivideModuloExpression).Evaluate() is high (> 15) (gocyclo)
    • update_test.go
    • Line 366: warning: cyclomatic complexity 34 of function TestMerge() is high (> 15) (gocyclo)
    • Line 223: warning: cyclomatic complexity 27 of function TestCreate() is high (> 15) (gocyclo)
    • Line 9: warning: cyclomatic complexity 21 of function TestUpdate() is high (> 15) (gocyclo)
    • value.go
    • Line 148: warning: cyclomatic complexity 27 of function IsValueSame() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 24 of function ValueOf() is high (> 15) (gocyclo)
    • update.go
    • Line 32: warning: cyclomatic complexity 22 of function (*setItem).update() is high (> 15) (gocyclo)
    • relationaleval.go
    • Line 7: warning: cyclomatic complexity 46 of function comparePrimitiveValues() is high (> 15) (gocyclo)
    • eval.go
    • Line 71: warning: cyclomatic complexity 41 of function (stringListNullOperatorExpressionPart).evaluate() is high (> 15) (gocyclo)
    • Line 410: warning: cyclomatic complexity 28 of function (singlePartQuery).Evaluate() is high (> 15) (gocyclo)

ineffassign82%

IneffAssign detects ineffectual assignments in Go code.

    • update_test.go
    • Line 509: warning: ineffectual assignment to n (ineffassign)
    • Line 542: warning: ineffectual assignment to n (ineffassign)
    • Line 564: warning: ineffectual assignment to n (ineffassign)
    • Line 584: warning: ineffectual assignment to n (ineffassign)
    • Line 606: warning: ineffectual assignment to n (ineffassign)
    • examples/match/main.go
    • Line 28: warning: ineffectual assignment to err (ineffassign)
    • Line 39: warning: ineffectual assignment to err (ineffassign)
    • Line 44: warning: ineffectual assignment to err (ineffassign)
    • Line 49: warning: ineffectual assignment to err (ineffassign)
    • Line 52: warning: ineffectual assignment to err (ineffassign)
    • Line 57: warning: ineffectual assignment to err (ineffassign)
    • Line 62: warning: ineffectual assignment to err (ineffassign)
    • Line 68: warning: ineffectual assignment to err (ineffassign)
    • Line 74: warning: ineffectual assignment to err (ineffassign)
    • Line 79: warning: ineffectual assignment to err (ineffassign)
    • Line 86: warning: ineffectual assignment to err (ineffassign)
    • Line 91: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!