Preparing report...

Report for github.com/vulcanize/ipfs-ethdb

A+    Excellent!    Found 4 issues across 15 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!


gocyclo100%

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.

No problems detected. Good job!


golint73%

Golint is a linter for Go source code.

    • ipfs-ethdb/batch.go
    • Line 30: warning: error var EvictionWarningErr should have name of the form ErrFoo (golint)
    • Line 30: warning: exported var EvictionWarningErr should have comment or be unexported (golint)
    • ipfs-ethdb/mock_blockservice.go
    • Line 31: warning: error var blockNotFoundErr should have name of the form errFoo (golint)
    • Line 34: warning: exported type MockBlockservice should have comment or be unexported (golint)
    • Line 39: warning: exported function NewMockBlockservice should have comment or be unexported (golint)
    • Line 47: warning: exported method MockBlockservice.Blockstore should have comment or be unexported (golint)
    • Line 51: warning: exported method MockBlockservice.Exchange should have comment or be unexported (golint)
    • Line 55: warning: exported method MockBlockservice.AddBlock should have comment or be unexported (golint)
    • Line 59: warning: exported method MockBlockservice.AddBlocks should have comment or be unexported (golint)
    • Line 63: warning: exported method MockBlockservice.DeleteBlock should have comment or be unexported (golint)
    • Line 67: warning: exported method MockBlockservice.GetBlock should have comment or be unexported (golint)
    • Line 71: warning: exported method MockBlockservice.GetBlocks should have comment or be unexported (golint)
    • Line 83: warning: exported method MockBlockservice.Close should have comment or be unexported (golint)
    • Line 87: warning: exported method MockBlockservice.SetError should have comment or be unexported (golint)
    • Line 91: warning: exported type MockBlockstore should have comment or be unexported (golint)
    • Line 96: warning: exported method MockBlockstore.DeleteBlock should have comment or be unexported (golint)
    • Line 101: warning: exported method MockBlockstore.Has should have comment or be unexported (golint)
    • Line 106: warning: exported method MockBlockstore.Get should have comment or be unexported (golint)
    • Line 114: warning: exported method MockBlockstore.GetSize should have comment or be unexported (golint)
    • Line 122: warning: exported method MockBlockstore.Put should have comment or be unexported (golint)
    • Line 127: warning: exported method MockBlockstore.PutMany should have comment or be unexported (golint)
    • Line 134: warning: exported method MockBlockstore.AllKeysChan should have comment or be unexported (golint)
    • Line 138: warning: exported method MockBlockstore.HashOnRead should have comment or be unexported (golint)
    • Line 142: warning: exported method MockBlockstore.SetError 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!