Preparing report...

Report for github.com/dosco/graphjin/v2

(v2.0.28)

A+    Excellent!    Found 40 issues across 184 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!


gofmt97%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo81%

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.

    • core/internal/qcode/exp.go
    • Line 287: warning: cyclomatic complexity 30 of function (*aexpst).processOpAndVal() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 25 of function (*aexpst).parseNode() is high (> 15) (gocyclo)
    • Line 35: warning: cyclomatic complexity 19 of function (*Compiler).compileExpNode() is high (> 15) (gocyclo)
    • core/internal/qcode/qcode.go
    • Line 397: warning: cyclomatic complexity 28 of function (*Compiler).compileQuery() is high (> 15) (gocyclo)
    • Line 532: warning: cyclomatic complexity 17 of function (*Compiler).addRelInfo() is high (> 15) (gocyclo)
    • serv/http.go
    • Line 96: warning: cyclomatic complexity 16 of function (*Service).apiV1GraphQL() is high (> 15) (gocyclo)
    • core/internal/qcode/mutate.go
    • Line 92: warning: cyclomatic complexity 27 of function (*Compiler).compileMutation() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 19 of function (*Compiler).processDirectives() is high (> 15) (gocyclo)
    • Line 322: warning: cyclomatic complexity 19 of function (*Compiler).processNestedMutations() is high (> 15) (gocyclo)
    • core/intro.go
    • Line 341: warning: cyclomatic complexity 19 of function (*intro).addTableTypeWithDepth() is high (> 15) (gocyclo)
    • serv/ws.go
    • Line 128: warning: cyclomatic complexity 18 of function (*service).subSwitch() is high (> 15) (gocyclo)
    • core/internal/psql/exp.go
    • Line 118: warning: cyclomatic complexity 50 of function (*expContext).renderOp() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 20 of function (*expContext).render() is high (> 15) (gocyclo)
    • core/internal/util/util_mit.go
    • Line 38: warning: cyclomatic complexity 40 of function ToScreamingDelimited() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 20 of function toCamelInitCase() is high (> 15) (gocyclo)
    • core/args.go
    • Line 21: warning: cyclomatic complexity 32 of function (*graphjin).argList() is high (> 15) (gocyclo)
    • serv/filewatch.go
    • Line 18: warning: cyclomatic complexity 25 of function startConfigWatcher() is high (> 15) (gocyclo)
    • internal/jsn/validate.go
    • Line 236: warning: cyclomatic complexity 29 of function validateNumber() is high (> 15) (gocyclo)
    • Line 30: warning: cyclomatic complexity 20 of function validateValue() is high (> 15) (gocyclo)
    • plugin/js/js.go
    • Line 80: warning: cyclomatic complexity 23 of function (*JSEngine).CompileScript() 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

    • core/api.go
    • Line 360: warning: "similiar" is a misspelling of "similar" (misspell)
    • Line 401: warning: "similiar" is a misspelling of "similar" (misspell)