Preparing report...

Report for github.com/sealdb/neodb

(v0.0.0-20230616142958-298281d66c37)

A+    Excellent!    Found 44 issues across 316 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!


gofmt93%

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!


gocyclo91%

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.

    • backend/xa.go
    • Line 68: warning: cyclomatic complexity 21 of function (*Txn).executeXA() is high (> 15) (gocyclo)
    • proxy/query.go
    • Line 41: warning: cyclomatic complexity 95 of function (*Spanner).ComQuery() is high (> 15) (gocyclo)
    • Line 457: warning: cyclomatic complexity 16 of function queryStat() is high (> 15) (gocyclo)
    • planner/builder/join_node.go
    • Line 544: warning: cyclomatic complexity 18 of function (*JoinNode).pushOtherFilters() is high (> 15) (gocyclo)
    • Line 377: warning: cyclomatic complexity 16 of function (*JoinNode).pushEqualCmprs() is high (> 15) (gocyclo)
    • proxy/ddl.go
    • Line 141: warning: cyclomatic complexity 64 of function (*Spanner).handleDDL() is high (> 15) (gocyclo)
    • backend/xacheck.go
    • Line 185: warning: cyclomatic complexity 18 of function (*XaCheck).commitRetryBackends() is high (> 15) (gocyclo)
    • ctl/v1/shard.go
    • Line 276: warning: cyclomatic complexity 16 of function shardMigrateHandler() is high (> 15) (gocyclo)
    • backend/txn.go
    • Line 565: warning: cyclomatic complexity 22 of function (*Txn).ExecuteStreamFetch() is high (> 15) (gocyclo)
    • Line 466: warning: cyclomatic complexity 17 of function (*Txn).execute() is high (> 15) (gocyclo)
    • planner/builder/from_test.go
    • Line 22: warning: cyclomatic complexity 21 of function TestScanTableExprs() is high (> 15) (gocyclo)
    • Line 351: warning: cyclomatic complexity 21 of function TestScanTableExprsList() is high (> 15) (gocyclo)
    • proxy/show.go
    • Line 78: warning: cyclomatic complexity 20 of function (*Spanner).handleShowTableStatus() is high (> 15) (gocyclo)
    • proxy/set.go
    • Line 27: warning: cyclomatic complexity 21 of function (*Spanner).handleSet() is high (> 15) (gocyclo)
    • planner/ddl_plan.go
    • Line 69: warning: cyclomatic complexity 16 of function (*DDLPlan).checkUnsupportedOperations() is high (> 15) (gocyclo)
    • proxy/admin_attach.go
    • Line 134: warning: cyclomatic complexity 21 of function (*Attach).addAttachHandler() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 16 of function (*Attach).detachHandler() is high (> 15) (gocyclo)
    • planner/builder/project.go
    • Line 322: warning: cyclomatic complexity 20 of function checkGroupBy() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 17 of function parseSelectExpr() is high (> 15) (gocyclo)
    • planner/builder/builder.go
    • Line 43: warning: cyclomatic complexity 18 of function processSelect() is high (> 15) (gocyclo)
    • Line 155: warning: cyclomatic complexity 16 of function union() is high (> 15) (gocyclo)
    • proxy/neodb.go
    • Line 22: warning: cyclomatic complexity 17 of function (*Spanner).handleNeoDB() is high (> 15) (gocyclo)

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!