Preparing report...

Report for github.com/akhenakh/oureadb

A+    Excellent!    Found 23 issues across 54 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!


gocyclo92%

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.

    • oureadb/store/test/bytes.go
    • Line 131: warning: cyclomatic complexity 22 of function CommonTestWriterOwnsBytes() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 18 of function CommonTestReaderOwnsGetBytes() is high (> 15) (gocyclo)
    • oureadb/store/test/iterator.go
    • Line 228: warning: cyclomatic complexity 22 of function CommonTestRangeIterator() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 17 of function CommonTestPrefixIteratorSeek() is high (> 15) (gocyclo)

golint57%

Golint is a linter for Go source code.

    • oureadb/store/test/iterator.go
    • Line 58: warning: exported function CommonTestPrefixIterator should have comment or be unexported (golint)
    • Line 148: warning: exported function CommonTestPrefixIteratorSeek should have comment or be unexported (golint)
    • Line 228: warning: exported function CommonTestRangeIterator should have comment or be unexported (golint)
    • Line 364: warning: exported function CommonTestRangeIteratorSeek should have comment or be unexported (golint)
    • oureadb/store/goleveldb/iterator.go
    • Line 19: warning: exported type Iterator should have comment or be unexported (golint)
    • Line 24: warning: exported method Iterator.Seek should have comment or be unexported (golint)
    • Line 28: warning: exported method Iterator.Next should have comment or be unexported (golint)
    • Line 32: warning: exported method Iterator.Current should have comment or be unexported (golint)
    • Line 39: warning: exported method Iterator.Key should have comment or be unexported (golint)
    • Line 43: warning: exported method Iterator.Value should have comment or be unexported (golint)
    • Line 47: warning: exported method Iterator.Valid should have comment or be unexported (golint)
    • Line 51: warning: exported method Iterator.Close should have comment or be unexported (golint)
    • oureadb/store/goleveldb/writer.go
    • Line 24: warning: exported type Writer should have comment or be unexported (golint)
    • Line 28: warning: exported method Writer.NewBatch should have comment or be unexported (golint)
    • Line 37: warning: exported method Writer.NewBatchEx should have comment or be unexported (golint)
    • Line 41: warning: exported method Writer.ExecuteBatch should have comment or be unexported (golint)
    • Line 66: warning: exported method Writer.Close should have comment or be unexported (golint)
    • oureadb/store/boltdb/iterator.go
    • Line 23: warning: exported type Iterator should have comment or be unexported (golint)
    • Line 46: warning: exported method Iterator.Seek should have comment or be unexported (golint)
    • Line 62: warning: exported method Iterator.Next should have comment or be unexported (golint)
    • Line 67: warning: exported method Iterator.Current should have comment or be unexported (golint)
    • Line 71: warning: exported method Iterator.Key should have comment or be unexported (golint)
    • Line 75: warning: exported method Iterator.Value should have comment or be unexported (golint)
    • Line 79: warning: exported method Iterator.Valid should have comment or be unexported (golint)
    • Line 83: warning: exported method Iterator.Close should have comment or be unexported (golint)
    • oureadb/store/boltdb/store.go
    • Line 36: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type Store should have comment or be unexported (golint)
    • Line 49: warning: exported function New should have comment or be unexported (golint)
    • Line 104: warning: exported method Store.Close should have comment or be unexported (golint)
    • Line 108: warning: exported method Store.Reader should have comment or be unexported (golint)
    • Line 120: warning: exported method Store.Writer should have comment or be unexported (golint)
    • Line 126: warning: exported method Store.Stats should have comment or be unexported (golint)
    • oureadb/store/gtreap/reader.go
    • Line 26: warning: exported type Reader should have comment or be unexported (golint)
    • Line 30: warning: exported method Reader.Get should have comment or be unexported (golint)
    • Line 41: warning: exported method Reader.MultiGet should have comment or be unexported (golint)
    • Line 41: warning: receiver name r should be consistent with previous receiver name w for Reader (golint)
    • Line 45: warning: exported method Reader.PrefixIterator should have comment or be unexported (golint)
    • Line 54: warning: exported method Reader.RangeIterator should have comment or be unexported (golint)
    • Line 64: warning: exported method Reader.Close should have comment or be unexported (golint)
    • oureadb/store/merge.go
    • Line 20: warning: exported type MergeOperator should have comment or be unexported (golint)
    • Line 36: warning: exported type EmulatedMerge should have comment or be unexported (golint)
    • Line 41: warning: exported function NewEmulatedMerge should have comment or be unexported (golint)
    • Line 48: warning: exported method EmulatedMerge.Merge should have comment or be unexported (golint)
    • oureadb/store/goleveldb/batch.go
    • Line 22: warning: exported type Batch should have comment or be unexported (golint)
    • Line 28: warning: exported method Batch.Set should have comment or be unexported (golint)
    • Line 32: warning: exported method Batch.Delete should have comment or be unexported (golint)
    • Line 36: warning: exported method Batch.Merge should have comment or be unexported (golint)
    • Line 40: warning: exported method Batch.Reset should have comment or be unexported (golint)
    • Line 45: warning: exported method Batch.Close should have comment or be unexported (golint)
    • oureadb/store/goleveldb/reader.go
    • Line 23: warning: exported type Reader should have comment or be unexported (golint)
    • Line 28: warning: exported method Reader.Get should have comment or be unexported (golint)
    • Line 36: warning: exported method Reader.MultiGet should have comment or be unexported (golint)
    • Line 40: warning: exported method Reader.PrefixIterator should have comment or be unexported (golint)
    • Line 51: warning: exported method Reader.RangeIterator should have comment or be unexported (golint)
    • Line 65: warning: exported method Reader.Close should have comment or be unexported (golint)
    • oureadb/store/test/merge.go
    • Line 32: warning: exported function CommonTestMerge should have comment or be unexported (golint)
    • Line 92: warning: comment on exported type TestMergeCounter should be of the form "TestMergeCounter ..." (with optional leading article) (golint)
    • Line 95: warning: exported method TestMergeCounter.FullMerge should have comment or be unexported (golint)
    • Line 112: warning: exported method TestMergeCounter.PartialMerge should have comment or be unexported (golint)
    • Line 120: warning: exported method TestMergeCounter.Name should have comment or be unexported (golint)
    • oureadb/store/batch.go
    • Line 22: warning: exported type EmulatedBatch should have comment or be unexported (golint)
    • Line 27: warning: exported function NewEmulatedBatch should have comment or be unexported (golint)
    • Line 34: warning: exported method EmulatedBatch.Set should have comment or be unexported (golint)
    • Line 42: warning: exported method EmulatedBatch.Delete should have comment or be unexported (golint)
    • Line 48: warning: exported method EmulatedBatch.Merge should have comment or be unexported (golint)
    • Line 56: warning: exported method EmulatedBatch.Reset should have comment or be unexported (golint)
    • Line 60: warning: exported method EmulatedBatch.Close should have comment or be unexported (golint)
    • oureadb/store/boltdb/writer.go
    • Line 23: warning: exported type Writer should have comment or be unexported (golint)
    • Line 27: warning: exported method Writer.NewBatch should have comment or be unexported (golint)
    • Line 31: warning: exported method Writer.NewBatchEx should have comment or be unexported (golint)
    • Line 35: warning: exported method Writer.ExecuteBatch should have comment or be unexported (golint)
    • Line 93: warning: exported method Writer.Close should have comment or be unexported (golint)
    • oureadb/store/gtreap/iterator.go
    • Line 27: warning: exported type Iterator should have comment or be unexported (golint)
    • Line 41: warning: exported method Iterator.Seek should have comment or be unexported (golint)
    • Line 98: warning: exported method Iterator.Next should have comment or be unexported (golint)
    • Line 105: warning: exported method Iterator.Current should have comment or be unexported (golint)
    • Line 119: warning: exported method Iterator.Key should have comment or be unexported (golint)
    • Line 127: warning: exported method Iterator.Value should have comment or be unexported (golint)
    • Line 135: warning: exported method Iterator.Valid should have comment or be unexported (golint)
    • Line 140: warning: exported method Iterator.Close should have comment or be unexported (golint)
    • oureadb/store/gtreap/store.go
    • Line 18: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • Line 31: warning: exported const Name should have comment or be unexported (golint)
    • Line 33: warning: exported type Store should have comment or be unexported (golint)
    • Line 39: warning: exported type Item should have comment or be unexported (golint)
    • Line 48: warning: exported function New should have comment or be unexported (golint)
    • Line 64: warning: exported method Store.Close should have comment or be unexported (golint)
    • Line 68: warning: exported method Store.Reader should have comment or be unexported (golint)
    • Line 75: warning: exported method Store.Writer should have comment or be unexported (golint)
    • oureadb/store/null/null.go
    • Line 19: warning: exported const Name should have comment or be unexported (golint)
    • Line 21: warning: exported type Store should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 27: warning: exported method Store.Close should have comment or be unexported (golint)
    • Line 31: warning: exported method Store.Reader should have comment or be unexported (golint)
    • Line 35: warning: exported method Store.Writer should have comment or be unexported (golint)
    • oureadb/store/goleveldb/store.go
    • Line 29: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type Store should have comment or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 75: warning: exported method Store.Close should have comment or be unexported (golint)
    • Line 79: warning: exported method Store.Reader should have comment or be unexported (golint)
    • Line 87: warning: exported method Store.Writer should have comment or be unexported (golint)
    • oureadb/store/boltdb/reader.go
    • Line 22: warning: exported type Reader should have comment or be unexported (golint)
    • Line 28: warning: exported method Reader.Get should have comment or be unexported (golint)
    • Line 38: warning: exported method Reader.MultiGet should have comment or be unexported (golint)
    • Line 42: warning: exported method Reader.PrefixIterator should have comment or be unexported (golint)
    • Line 56: warning: exported method Reader.RangeIterator should have comment or be unexported (golint)
    • Line 71: warning: exported method Reader.Close should have comment or be unexported (golint)
    • oureadb/store/gtreap/writer.go
    • Line 27: warning: exported type Writer should have comment or be unexported (golint)
    • Line 31: warning: exported method Writer.NewBatch should have comment or be unexported (golint)
    • Line 35: warning: exported method Writer.NewBatchEx should have comment or be unexported (golint)
    • Line 39: warning: exported method Writer.ExecuteBatch should have comment or be unexported (golint)
    • Line 73: warning: exported method Writer.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!