Preparing report...

Report for github.com/dosco/graphjin

(v0.17.24)

An error occurred while generating the report.    Found 44 issues across 151 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!


gofmt91%

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!


gocyclo79%

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/init.go
    • Line 36: warning: cyclomatic complexity 16 of function (*graphjin).initConfig() is high (> 15) (gocyclo)
    • core/args.go
    • Line 20: warning: cyclomatic complexity 28 of function (*graphjin).argList() is high (> 15) (gocyclo)
    • core/internal/qcode/qcode.go
    • Line 329: warning: cyclomatic complexity 28 of function (*Compiler).compileQuery() is high (> 15) (gocyclo)
    • Line 1146: warning: cyclomatic complexity 21 of function (*Compiler).compileDirectiveConstraint() is high (> 15) (gocyclo)
    • Line 1414: warning: cyclomatic complexity 17 of function (*Compiler).compileArgOrderByObj() is high (> 15) (gocyclo)
    • Line 466: warning: cyclomatic complexity 17 of function (*Compiler).addRelInfo() is high (> 15) (gocyclo)
    • core/internal/qcode/mutate.go
    • Line 92: warning: cyclomatic complexity 24 of function (*Compiler).compileMutation() is high (> 15) (gocyclo)
    • Line 409: warning: cyclomatic complexity 19 of function (*Compiler).processDirectives() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 17 of function (*Compiler).processNestedMutations() is high (> 15) (gocyclo)
    • serv/telemetry.go
    • Line 22: warning: cyclomatic complexity 22 of function enableObservability() is high (> 15) (gocyclo)
    • serv/http.go
    • Line 88: warning: cyclomatic complexity 22 of function (*Service).apiV1() is high (> 15) (gocyclo)
    • core/internal/qcode/exp.go
    • Line 286: warning: cyclomatic complexity 29 of function (*aexpst).processOpAndVal() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 25 of function (*aexpst).parseNode() is high (> 15) (gocyclo)
    • Line 446: warning: cyclomatic complexity 16 of function (*aexpst).processNestedTable() 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)
    • serv/utils.go
    • Line 15: warning: cyclomatic complexity 23 of function gqlHash() is high (> 15) (gocyclo)
    • serv/filewatch.go
    • Line 18: warning: cyclomatic complexity 25 of function startConfigWatcher() is high (> 15) (gocyclo)
    • core/api.go
    • Line 274: warning: cyclomatic complexity 21 of function (*GraphJin).GraphQL() is high (> 15) (gocyclo)
    • Line 144: warning: cyclomatic complexity 17 of function newGraphJin() is high (> 15) (gocyclo)
    • serv/init.go
    • Line 64: warning: cyclomatic complexity 17 of function (*service).initConfig() 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/script.go
    • Line 125: warning: cyclomatic complexity 17 of function (*gcontext).scriptInit() is high (> 15) (gocyclo)
    • core/internal/psql/exp.go
    • Line 118: warning: cyclomatic complexity 45 of function (*expContext).renderOp() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 20 of function (*expContext).render() is high (> 15) (gocyclo)
    • core/core.go
    • Line 348: warning: cyclomatic complexity 16 of function (*gcontext).validateAndUpdateVars() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)