Preparing report...

Report for github.com/aperturerobotics/cayley

(v0.7.7)

A+    Excellent!    Found 50 issues across 212 files

Tweet

gofmt85%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo89%

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.

    • query/graphql/graphql.go
    • Line 157: warning: cyclomatic complexity 59 of function iterateObject() is high (> 15) (gocyclo)
    • Line 492: warning: cyclomatic complexity 21 of function convField() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 16 of function convValue() is high (> 15) (gocyclo)
    • graph/sql/quadstore.go
    • Line 417: warning: cyclomatic complexity 24 of function (*QuadStore).ApplyDeltas() is high (> 15) (gocyclo)
    • Line 626: warning: cyclomatic complexity 23 of function (*QuadStore).NameOf() is high (> 15) (gocyclo)
    • graph/kv/indexing.go
    • Line 561: warning: cyclomatic complexity 27 of function (*QuadStore).ApplyDeltas() is high (> 15) (gocyclo)
    • Line 974: warning: cyclomatic complexity 18 of function (*QuadStore).flushMapBucket() is high (> 15) (gocyclo)
    • schema/schema.go
    • Line 126: warning: cyclomatic complexity 22 of function (Config).fieldRule() is high (> 15) (gocyclo)
    • graph/shape/shape.go
    • Line 919: warning: cyclomatic complexity 46 of function (Intersect).Optimize() is high (> 15) (gocyclo)
    • Line 530: warning: cyclomatic complexity 20 of function (NodesFrom).Optimize() is high (> 15) (gocyclo)
    • schema/loader.go
    • Line 414: warning: cyclomatic complexity 37 of function (*loader).loadIteratorToDepth() is high (> 15) (gocyclo)
    • Line 289: warning: cyclomatic complexity 34 of function (*loader).loadToValue() is high (> 15) (gocyclo)
    • Line 167: warning: cyclomatic complexity 32 of function (*loader).makePathForType() is high (> 15) (gocyclo)
    • graph/nosql/quadstore.go
    • Line 519: warning: cyclomatic complexity 26 of function toQuadValue() is high (> 15) (gocyclo)
    • Line 374: warning: cyclomatic complexity 25 of function (*QuadStore).ApplyDeltas() is high (> 15) (gocyclo)
    • schema/writer.go
    • Line 116: warning: cyclomatic complexity 25 of function (*writer).writeAsQuads() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 18 of function (*writer).writeValueAs() is high (> 15) (gocyclo)
    • query/mql/fill.go
    • Line 25: warning: cyclomatic complexity 21 of function (*Query).treeifyResult() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words

    • graph/iterator.go
    • Line 174: warning: "convienence" is a misspelling of "convenience" (misspell)
    • Line 199: warning: "convienence" is a misspelling of "convenience" (misspell)