Preparing report...

Report for github.com/nutsdb/nutsdb

(v0.11.1)

A+    Excellent!    Found 9 issues across 72 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!


gofmt100%

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

No problems detected. Good job!


gocyclo93%

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.

    • iterator.go
    • Line 46: warning: cyclomatic complexity 27 of function (*Iterator).SetNext() is high (> 15) (gocyclo)
    • tx.go
    • Line 144: warning: cyclomatic complexity 23 of function (*Tx).Commit() is high (> 15) (gocyclo)
    • db.go
    • Line 322: warning: cyclomatic complexity 22 of function (*DB).Merge() is high (> 15) (gocyclo)
    • Line 1049: warning: cyclomatic complexity 19 of function (*DB).getPendingMergeEntries() is high (> 15) (gocyclo)
    • Line 878: warning: cyclomatic complexity 18 of function (*DB).buildListIdx() is high (> 15) (gocyclo)
    • tx_bucket.go
    • Line 20: warning: cyclomatic complexity 19 of function (*Tx).IterateBuckets() is high (> 15) (gocyclo)
    • tx_bptree.go
    • Line 521: warning: cyclomatic complexity 19 of function (*Tx).findPrefixSearchOnDisk() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 17 of function (*Tx).findPrefixOnDisk() is high (> 15) (gocyclo)
    • Line 229: warning: cyclomatic complexity 17 of function (*Tx).RangeScan() is high (> 15) (gocyclo)

ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • tx_bptree.go
    • Line 731: warning: ineffectual assignment to off (ineffassign)
    • Line 784: warning: ineffectual assignment to off (ineffassign)
    • Line 731: warning: ineffectual assignment to off (ineffassign)
    • Line 784: warning: ineffectual assignment to off (ineffassign)

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!