Preparing report...

Report for github.com/cbergoon/stitchdb

A+    Excellent!    Found 9 issues across 27 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


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.

    • stitchdb/bucket.go
    • Line 384: warning: cyclomatic complexity 27 of function (*Bucket).manager() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 22 of function (*Bucket).loadBucketFile() is high (> 15) (gocyclo)
    • stitchdb/tx_test.go
    • Line 533: warning: cyclomatic complexity 16 of function TestTx_Delete() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 16 of function TestTx_AscendRange() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 16 of function TestTx_AscendLessThan() is high (> 15) (gocyclo)
    • Line 488: warning: cyclomatic complexity 16 of function TestTx_Set() is high (> 15) (gocyclo)
    • Line 444: warning: cyclomatic complexity 16 of function TestTx_Get() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 16 of function TestTx_DescendRange() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 16 of function TestTx_DescendGreaterThan() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 16 of function TestTx_AscendGreaterOrEqual() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 16 of function TestTx_DescendLessOrEqual() is high (> 15) (gocyclo)
    • stitchdb/db_test.go
    • Line 180: warning: cyclomatic complexity 16 of function TestStitchDB_Update() is high (> 15) (gocyclo)
    • Line 244: warning: cyclomatic complexity 16 of function TestStitchDB_CreateBucket() is high (> 15) (gocyclo)
    • stitchdb/db.go
    • Line 215: warning: cyclomatic complexity 16 of function (*StitchDB).runManager() is high (> 15) (gocyclo)

golint88%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.

    • stitchdb/tx_test.go
    • Line 89: warning: ineffectual assignment to err (ineffassign)
    • Line 90: warning: ineffectual assignment to err (ineffassign)
    • Line 146: warning: ineffectual assignment to err (ineffassign)
    • Line 147: warning: ineffectual assignment to err (ineffassign)
    • Line 204: warning: ineffectual assignment to err (ineffassign)
    • Line 205: warning: ineffectual assignment to err (ineffassign)
    • Line 305: warning: ineffectual assignment to err (ineffassign)
    • Line 306: warning: ineffectual assignment to err (ineffassign)
    • Line 362: warning: ineffectual assignment to err (ineffassign)
    • Line 363: warning: ineffectual assignment to err (ineffassign)
    • Line 420: warning: ineffectual assignment to err (ineffassign)
    • Line 421: warning: ineffectual assignment to err (ineffassign)
    • Line 900: warning: ineffectual assignment to err (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!