Preparing report...

Report for github.com/dosco/graphjin/core/v3

(v3.0.0-20240625083526-f1645782db29)

A+    Excellent!    Found 32 issues across 101 files

Tweet

gofmt96%

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!


gocyclo73%

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.

    • internal/psql/exp.go
    • Line 118: warning: cyclomatic complexity 51 of function (*expContext).renderOp() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 20 of function (*expContext).render() is high (> 15) (gocyclo)
    • internal/qcode/exp.go
    • Line 288: warning: cyclomatic complexity 31 of function (*aexpst).processOpAndVal() is high (> 15) (gocyclo)
    • Line 122: warning: cyclomatic complexity 25 of function (*aexpst).parseNode() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 19 of function (*Compiler).compileExpNode() 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)
    • internal/psql/mutate.go
    • Line 84: warning: cyclomatic complexity 18 of function (*compilerContext).renderInsertUpdateValues() is high (> 15) (gocyclo)
    • 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)
    • args.go
    • Line 21: warning: cyclomatic complexity 34 of function (*graphjin).argList() is high (> 15) (gocyclo)
    • internal/qcode/qcode.go
    • Line 391: warning: cyclomatic complexity 28 of function (*Compiler).compileQuery() is high (> 15) (gocyclo)
    • Line 871: warning: cyclomatic complexity 20 of function (*Compiler).addSeekPredicate() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 17 of function (*Compiler).addRelInfo() is high (> 15) (gocyclo)
    • internal/qcode/mutate.go
    • Line 92: warning: cyclomatic complexity 27 of function (*Compiler).compileMutation() is high (> 15) (gocyclo)
    • Line 322: warning: cyclomatic complexity 19 of function (*Compiler).processNestedMutations() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 19 of function (*Compiler).processDirectives() is high (> 15) (gocyclo)
    • intro.go
    • Line 357: warning: cyclomatic complexity 19 of function (*Introspection).addTableTypeWithDepth() 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

    • api.go
    • Line 357: warning: "similiar" is a misspelling of "similar" (misspell)
    • Line 398: warning: "similiar" is a misspelling of "similar" (misspell)