Preparing report...

Report for github.com/vulcanize/eth-block-extractor

A+    Excellent!    Found 57 issues across 88 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!


golint35%

Golint is a linter for Go source code.

    • eth-block-extractor/pkg/ipfs/publisher.go
    • Line 5: warning: exported type Error should have comment or be unexported (golint)
    • Line 14: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 18: warning: exported type BlockDataPublisher should have comment or be unexported (golint)
    • Line 22: warning: exported function NewIpfsPublisher should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/state/statedb_factory.go
    • Line 8: warning: exported type GethStateDBFactory should have comment or be unexported (golint)
    • Line 12: warning: exported type StateDBFactory should have comment or be unexported (golint)
    • Line 15: warning: exported function NewStateDBFactory should have comment or be unexported (golint)
    • Line 19: warning: exported method StateDBFactory.NewStateDB should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/ipfs/publisher.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 9: warning: exported type MockPublisher should have comment or be unexported (golint)
    • Line 15: warning: exported function NewMockPublisher should have comment or be unexported (golint)
    • Line 23: warning: exported method MockPublisher.SetReturnStrings should have comment or be unexported (golint)
    • Line 27: warning: exported method MockPublisher.SetError should have comment or be unexported (golint)
    • Line 50: warning: exported method MockPublisher.AssertWriteCalledWithBytes should have comment or be unexported (golint)
    • Line 59: warning: exported method MockPublisher.AssertWriteCalledWithInterfaces should have comment or be unexported (golint)
    • Line 68: warning: exported method MockPublisher.AssertWriteCalledWithBodies should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/core/state/statedb_factory.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 10: warning: exported type MockStateDBFactory should have comment or be unexported (golint)
    • Line 17: warning: exported function NewMockStateDBFactory should have comment or be unexported (golint)
    • Line 26: warning: exported method MockStateDBFactory.SetStateDB should have comment or be unexported (golint)
    • Line 30: warning: exported method MockStateDBFactory.SetReturnErr should have comment or be unexported (golint)
    • Line 34: warning: exported method MockStateDBFactory.NewStateDB should have comment or be unexported (golint)
    • Line 40: warning: exported method MockStateDBFactory.AssertNewStateTrieCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/pkg/transformers/errors.go
    • Line 9: warning: exported const GetBlockRlpErr should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported var ErrInvalidRange should have comment or be unexported (golint)
    • Line 15: warning: exported type ExecuteError should have comment or be unexported (golint)
    • Line 20: warning: exported function NewExecuteError should have comment or be unexported (golint)
    • eth-block-extractor/pkg/transformers/eth_block_receipts.go
    • Line 9: warning: exported type EthBlockReceiptTransformer should have comment or be unexported (golint)
    • Line 14: warning: exported function NewEthBlockReceiptTransformer should have comment or be unexported (golint)
    • Line 21: warning: exported method EthBlockReceiptTransformer.Execute should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_storage_trie/node.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type EthStorageTrieNode should have comment or be unexported (golint)
    • Line 13: warning: exported method EthStorageTrieNode.RawData should have comment or be unexported (golint)
    • Line 17: warning: exported method EthStorageTrieNode.Cid should have comment or be unexported (golint)
    • Line 25: warning: exported method EthStorageTrieNode.Loggable should have comment or be unexported (golint)
    • Line 29: warning: exported method EthStorageTrieNode.Resolve should have comment or be unexported (golint)
    • Line 33: warning: exported method EthStorageTrieNode.Tree should have comment or be unexported (golint)
    • Line 37: warning: exported method EthStorageTrieNode.ResolveLink should have comment or be unexported (golint)
    • Line 41: warning: exported method EthStorageTrieNode.Copy should have comment or be unexported (golint)
    • Line 45: warning: exported method EthStorageTrieNode.Links should have comment or be unexported (golint)
    • Line 49: warning: exported method EthStorageTrieNode.Stat should have comment or be unexported (golint)
    • Line 53: warning: exported method EthStorageTrieNode.Size should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_block_receipts/dag_putter.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type EthBlockReceiptDagPutter should have comment or be unexported (golint)
    • Line 17: warning: exported function NewEthBlockReceiptDagPutter should have comment or be unexported (golint)
    • Line 21: warning: exported method EthBlockReceiptDagPutter.DagPut should have comment or be unexported (golint)
    • eth-block-extractor/pkg/transformers/compute_eth_state_trie.go
    • Line 12: warning: exported const GenesisBlockNumber should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type ComputeEthStateTrieTransformer should have comment or be unexported (golint)
    • Line 22: warning: exported function NewComputeEthStateTrieTransformer should have comment or be unexported (golint)
    • Line 30: warning: exported method ComputeEthStateTrieTransformer.Execute should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/node.go
    • Line 12: warning: exported type IPFS should have comment or be unexported (golint)
    • Line 17: warning: exported method IPFS.Add should have comment or be unexported (golint)
    • Line 21: warning: exported function InitIPFSNode should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/db/level/state_computer.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type MockStateComputer should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMockStateComputer should have comment or be unexported (golint)
    • Line 25: warning: exported method MockStateComputer.SetComputeBlockStateTrieReturnErr should have comment or be unexported (golint)
    • Line 29: warning: exported method MockStateComputer.SetComputeBlockStateTrieReturnHash should have comment or be unexported (golint)
    • Line 33: warning: exported method MockStateComputer.ComputeBlockStateTrie should have comment or be unexported (golint)
    • Line 39: warning: exported method MockStateComputer.AssertComputeBlockStateTrieCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/ipfs/adder.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 8: warning: exported type MockAdder should have comment or be unexported (golint)
    • Line 14: warning: exported function NewMockAdder should have comment or be unexported (golint)
    • Line 22: warning: exported method MockAdder.SetError should have comment or be unexported (golint)
    • Line 26: warning: exported method MockAdder.Add should have comment or be unexported (golint)
    • Line 32: warning: exported method MockAdder.AssertAddCalled should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/core/blockchain.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 10: warning: exported type MockBlockChain should have comment or be unexported (golint)
    • Line 14: warning: exported function NewMockBlockChain should have comment or be unexported (golint)
    • Line 20: warning: exported method MockBlockChain.BlockChain should have comment or be unexported (golint)
    • Line 24: warning: exported method MockBlockChain.Config should have comment or be unexported (golint)
    • Line 29: warning: exported method MockBlockChain.Engine should have comment or be unexported (golint)
    • Line 33: warning: exported method MockBlockChain.AssertConfigCalled should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/blockchain.go
    • Line 12: warning: exported type GethCoreBlockChain should have comment or be unexported (golint)
    • Line 18: warning: exported type BlockChain should have comment or be unexported (golint)
    • Line 22: warning: exported function NewBlockChain should have comment or be unexported (golint)
    • Line 30: warning: exported method BlockChain.BlockChain should have comment or be unexported (golint)
    • Line 34: warning: exported method BlockChain.Config should have comment or be unexported (golint)
    • Line 38: warning: exported method BlockChain.Engine should have comment or be unexported (golint)
    • eth-block-extractor/pkg/db/level/state_computer.go
    • Line 10: warning: exported type IStateComputer should have comment or be unexported (golint)
    • Line 14: warning: exported type StateComputer should have comment or be unexported (golint)
    • Line 22: warning: exported function NewStateComputer should have comment or be unexported (golint)
    • Line 32: warning: exported method StateComputer.ComputeBlockStateTrie should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_state_trie/node.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type EthStateTrieNode should have comment or be unexported (golint)
    • Line 13: warning: exported method EthStateTrieNode.RawData should have comment or be unexported (golint)
    • Line 17: warning: exported method EthStateTrieNode.Cid should have comment or be unexported (golint)
    • Line 25: warning: exported method EthStateTrieNode.Loggable should have comment or be unexported (golint)
    • Line 29: warning: exported method EthStateTrieNode.Resolve should have comment or be unexported (golint)
    • Line 33: warning: exported method EthStateTrieNode.Tree should have comment or be unexported (golint)
    • Line 37: warning: exported method EthStateTrieNode.ResolveLink should have comment or be unexported (golint)
    • Line 41: warning: exported method EthStateTrieNode.Copy should have comment or be unexported (golint)
    • Line 45: warning: exported method EthStateTrieNode.Links should have comment or be unexported (golint)
    • Line 49: warning: exported method EthStateTrieNode.Stat should have comment or be unexported (golint)
    • Line 53: warning: exported method EthStateTrieNode.Size should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/core/rawdb/accessors_chain.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 10: warning: exported type MockAccessorsChain should have comment or be unexported (golint)
    • Line 30: warning: exported function NewMockAccessorsChain should have comment or be unexported (golint)
    • Line 48: warning: exported method MockAccessorsChain.SetGetBlockReturnBlock should have comment or be unexported (golint)
    • Line 52: warning: exported method MockAccessorsChain.SetGetCanonicalHashReturnHash should have comment or be unexported (golint)
    • Line 56: warning: exported method MockAccessorsChain.SetGetStateTrieNodesReturnStateTrieBytes should have comment or be unexported (golint)
    • Line 60: warning: exported method MockAccessorsChain.SetGetStateTrieNodesReturnStorageTrieBytes should have comment or be unexported (golint)
    • Line 64: warning: exported method MockAccessorsChain.SetGetStateTrieNodesReturnErr should have comment or be unexported (golint)
    • Line 68: warning: exported method MockAccessorsChain.GetBlock should have comment or be unexported (golint)
    • Line 74: warning: exported method MockAccessorsChain.GetBlockReceipts should have comment or be unexported (golint)
    • Line 80: warning: exported method MockAccessorsChain.GetBody should have comment or be unexported (golint)
    • Line 86: warning: exported method MockAccessorsChain.GetCanonicalHash should have comment or be unexported (golint)
    • Line 91: warning: exported method MockAccessorsChain.GetHeader should have comment or be unexported (golint)
    • Line 97: warning: exported method MockAccessorsChain.GetHeaderRLP should have comment or be unexported (golint)
    • Line 103: warning: exported method MockAccessorsChain.GetStateAndStorageTrieNodes should have comment or be unexported (golint)
    • Line 108: warning: exported method MockAccessorsChain.AssertGetBlockCalledWith should have comment or be unexported (golint)
    • Line 113: warning: exported method MockAccessorsChain.AssertGetBlockReceiptsCalledWith should have comment or be unexported (golint)
    • Line 118: warning: exported method MockAccessorsChain.AssertGetBodyRLPCalledWith should have comment or be unexported (golint)
    • Line 123: warning: exported method MockAccessorsChain.AssertGetCanonicalHashCalledWith should have comment or be unexported (golint)
    • Line 127: warning: exported method MockAccessorsChain.AssertGetHeaderCalledWith should have comment or be unexported (golint)
    • Line 132: warning: exported method MockAccessorsChain.AssertGetHeaderRLPCalledWith should have comment or be unexported (golint)
    • Line 137: warning: exported method MockAccessorsChain.AssertGetStateTrieNodesCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/pkg/db/level/state_trie_reader.go
    • Line 8: warning: exported type IStateTrieReader should have comment or be unexported (golint)
    • Line 12: warning: exported type StateTrieReader should have comment or be unexported (golint)
    • Line 17: warning: exported function NewStateTrieReader should have comment or be unexported (golint)
    • Line 24: warning: exported method StateTrieReader.GetStateAndStorageTrieNodes should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/state/trie.go
    • Line 9: warning: exported type GethTrie should have comment or be unexported (golint)
    • Line 13: warning: exported type Trie should have comment or be unexported (golint)
    • Line 17: warning: exported function NewTrie should have comment or be unexported (golint)
    • Line 21: warning: exported method Trie.NodeIterator should have comment or be unexported (golint)
    • eth-block-extractor/pkg/db/config.go
    • Line 3: warning: exported type DatabaseType should have comment or be unexported (golint)
    • Line 6: warning: exported const Level should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type DatabaseConfig should have comment or be unexported (golint)
    • Line 14: warning: exported function CreateDatabaseConfig should have comment or be unexported (golint)
    • eth-block-extractor/pkg/transformers/eth_block_header.go
    • Line 10: warning: exported type EthBlockHeaderTransformer should have comment or be unexported (golint)
    • Line 15: warning: exported function NewEthBlockHeaderTransformer should have comment or be unexported (golint)
    • Line 19: warning: exported method EthBlockHeaderTransformer.Execute should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/core/state_processor.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type MockProcessor should have comment or be unexported (golint)
    • Line 17: warning: exported function NewMockProcessor should have comment or be unexported (golint)
    • Line 27: warning: exported method MockProcessor.SetReturnErr should have comment or be unexported (golint)
    • Line 31: warning: exported method MockProcessor.SetReturnReceipts should have comment or be unexported (golint)
    • Line 35: warning: exported method MockProcessor.SetReturnUsedGas should have comment or be unexported (golint)
    • Line 39: warning: exported method MockProcessor.Process should have comment or be unexported (golint)
    • Line 45: warning: exported method MockProcessor.AssertProcessCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/pkg/transformers/eth_block_transactions.go
    • Line 9: warning: exported type EthBlockTransactionsTransformer should have comment or be unexported (golint)
    • Line 14: warning: exported function NewEthBlockTransactionsTransformer should have comment or be unexported (golint)
    • Line 18: warning: exported method EthBlockTransactionsTransformer.Execute should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/rlp/decode.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 8: warning: exported type MockDecoder should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMockDecoder should have comment or be unexported (golint)
    • Line 26: warning: exported method MockDecoder.SetError should have comment or be unexported (golint)
    • Line 30: warning: exported method MockDecoder.SetReturnOut should have comment or be unexported (golint)
    • Line 34: warning: exported method MockDecoder.Decode should have comment or be unexported (golint)
    • Line 43: warning: exported method MockDecoder.AssertDecodeCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_block_receipts/node.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type EthReceiptNode should have comment or be unexported (golint)
    • Line 13: warning: exported method EthReceiptNode.RawData should have comment or be unexported (golint)
    • Line 17: warning: exported method EthReceiptNode.Cid should have comment or be unexported (golint)
    • Line 25: warning: exported method EthReceiptNode.Loggable should have comment or be unexported (golint)
    • Line 29: warning: exported method EthReceiptNode.Resolve should have comment or be unexported (golint)
    • Line 33: warning: exported method EthReceiptNode.Tree should have comment or be unexported (golint)
    • Line 37: warning: exported method EthReceiptNode.ResolveLink should have comment or be unexported (golint)
    • Line 41: warning: exported method EthReceiptNode.Copy should have comment or be unexported (golint)
    • Line 45: warning: exported method EthReceiptNode.Links should have comment or be unexported (golint)
    • Line 49: warning: exported method EthReceiptNode.Stat should have comment or be unexported (golint)
    • Line 53: warning: exported method EthReceiptNode.Size should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/ipfs/dag_putter.go
    • Line 3: warning: exported type MockDagPutter should have comment or be unexported (golint)
    • Line 9: warning: exported function NewMockDagPutter should have comment or be unexported (golint)
    • Line 17: warning: exported method MockDagPutter.SetError should have comment or be unexported (golint)
    • Line 21: warning: exported method MockDagPutter.DagPut should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_state_trie/dag_putter.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported const EthStateTrieNodeCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type StateTrieDagPutter should have comment or be unexported (golint)
    • Line 16: warning: exported function NewStateTrieDagPutter should have comment or be unexported (golint)
    • Line 20: warning: exported method StateTrieDagPutter.DagPut should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/rawdb/accessors_chain.go
    • Line 11: warning: exported type IAccessorsChain should have comment or be unexported (golint)
    • Line 20: warning: exported type AccessorsChain should have comment or be unexported (golint)
    • Line 24: warning: exported function NewAccessorsChain should have comment or be unexported (golint)
    • Line 28: warning: exported method AccessorsChain.GetBlock should have comment or be unexported (golint)
    • Line 32: warning: exported method AccessorsChain.GetBlockReceipts should have comment or be unexported (golint)
    • Line 36: warning: exported method AccessorsChain.GetBody should have comment or be unexported (golint)
    • Line 40: warning: exported method AccessorsChain.GetCanonicalHash should have comment or be unexported (golint)
    • Line 44: warning: exported method AccessorsChain.GetHeader should have comment or be unexported (golint)
    • Line 48: warning: exported method AccessorsChain.GetHeaderRLP should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/db/level/storage_trie_reader.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 8: warning: exported type MockStorageTrieReader should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMockStorageTrieReader should have comment or be unexported (golint)
    • Line 18: warning: exported method MockStorageTrieReader.GetStorageTrie should have comment or be unexported (golint)
    • Line 23: warning: exported method MockStorageTrieReader.AssertGetStorageTrieCalled should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/core/state/statedb.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 10: warning: exported type MockStateDB should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMockStateDB should have comment or be unexported (golint)
    • Line 24: warning: exported method MockStateDB.SetReturnErr should have comment or be unexported (golint)
    • Line 28: warning: exported method MockStateDB.SetStateDB should have comment or be unexported (golint)
    • Line 32: warning: exported method MockStateDB.Commit should have comment or be unexported (golint)
    • Line 37: warning: exported method MockStateDB.StateDB should have comment or be unexported (golint)
    • Line 41: warning: exported method MockStateDB.AssertCommitCalled should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/db/level/state_trie_reader.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 8: warning: exported type MockStateTrieReader should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMockStateTrieReader should have comment or be unexported (golint)
    • Line 16: warning: exported method MockStateTrieReader.GetStateAndStorageTrieNodes should have comment or be unexported (golint)
    • Line 21: warning: exported method MockStateTrieReader.AssertGetStateAndStorageTrieNodesCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/block_validator.go
    • Line 9: warning: exported type GethBlockValidator should have comment or be unexported (golint)
    • Line 13: warning: exported type BlockValidator should have comment or be unexported (golint)
    • Line 17: warning: exported function NewBlockValidator should have comment or be unexported (golint)
    • Line 22: warning: exported method BlockValidator.ValidateState should have comment or be unexported (golint)
    • eth-block-extractor/pkg/db/level/storage_trie_reader.go
    • Line 10: warning: exported var EmptyStorageTrieRoot should have comment or be unexported (golint)
    • Line 12: warning: exported type IStorageTrieReader should have comment or be unexported (golint)
    • Line 16: warning: exported type StorageTrieReader should have comment or be unexported (golint)
    • Line 21: warning: exported function NewStorageTrieReader should have comment or be unexported (golint)
    • Line 28: warning: exported method StorageTrieReader.GetStorageTrie should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/trie/database.go
    • Line 8: warning: exported type GethTrieDatabase should have comment or be unexported (golint)
    • Line 12: warning: exported type Database should have comment or be unexported (golint)
    • Line 16: warning: exported function NewTrieDatabase should have comment or be unexported (golint)
    • Line 20: warning: exported method Database.Node should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_storage_trie/dag_putter.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported const EthStorageTrieNodeCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type StorageTrieDagPutter should have comment or be unexported (golint)
    • Line 16: warning: exported function NewStorageTrieDagPutter should have comment or be unexported (golint)
    • Line 20: warning: exported method StorageTrieDagPutter.DagPut should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/state_processor.go
    • Line 12: warning: exported type GethStateProcessor should have comment or be unexported (golint)
    • Line 16: warning: exported type StateProcessor should have comment or be unexported (golint)
    • Line 20: warning: exported function NewStateProcessor should have comment or be unexported (golint)
    • Line 25: warning: exported method StateProcessor.Process should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/state/database.go
    • Line 10: warning: exported type GethStateDatabase should have comment or be unexported (golint)
    • Line 16: warning: exported type Database should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDatabase should have comment or be unexported (golint)
    • Line 27: warning: exported method Database.Database should have comment or be unexported (golint)
    • Line 31: warning: exported method Database.OpenTrie should have comment or be unexported (golint)
    • Line 39: warning: exported method Database.TrieDB should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/trie/iterator.go
    • Line 8: warning: exported type MockIterator should have comment or be unexported (golint)
    • Line 14: warning: exported function NewMockIterator should have comment or be unexported (golint)
    • Line 22: warning: exported method MockIterator.SetReturnHash should have comment or be unexported (golint)
    • Line 26: warning: exported method MockIterator.SetIncludeLeaf should have comment or be unexported (golint)
    • Line 30: warning: exported method MockIterator.Leaf should have comment or be unexported (golint)
    • Line 38: warning: exported method MockIterator.LeafBlob should have comment or be unexported (golint)
    • Line 42: warning: exported method MockIterator.Next should have comment or be unexported (golint)
    • Line 49: warning: exported method MockIterator.Hash should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_block_transactions/dag_putter.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported const EthBlockTransactionCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type BlockTransactionsDagPutter should have comment or be unexported (golint)
    • Line 20: warning: exported function NewBlockTransactionsDagPutter should have comment or be unexported (golint)
    • Line 24: warning: exported method BlockTransactionsDagPutter.DagPut should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/db/database.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type MockDatabase should have comment or be unexported (golint)
    • Line 30: warning: exported function NewMockDatabase should have comment or be unexported (golint)
    • Line 53: warning: exported method MockDatabase.SetComputeBlockStateTrieError should have comment or be unexported (golint)
    • Line 57: warning: exported method MockDatabase.SetComputeBlockStateTrieReturnHash should have comment or be unexported (golint)
    • Line 61: warning: exported method MockDatabase.SetGetBlockBodyByBlockNumberReturnBody should have comment or be unexported (golint)
    • Line 65: warning: exported method MockDatabase.SetGetBlockByBlockNumberReturnBlock should have comment or be unexported (golint)
    • Line 69: warning: exported method MockDatabase.SetGetBlockHeaderByBlockNumberReturnHeader should have comment or be unexported (golint)
    • Line 73: warning: exported method MockDatabase.SetGetRawBlockHeaderByBlockNumberReturnBytes should have comment or be unexported (golint)
    • Line 77: warning: exported method MockDatabase.SetGetBlockReceiptsReturnReceipts should have comment or be unexported (golint)
    • Line 81: warning: exported method MockDatabase.SetGetStateAndStorageTrieNodesError should have comment or be unexported (golint)
    • Line 85: warning: exported method MockDatabase.SetGetStateAndStorageTrieNodesReturnStateTrieBytes should have comment or be unexported (golint)
    • Line 89: warning: exported method MockDatabase.SetGetStateAndStorageTrieNodesReturnStorageTrieBytes should have comment or be unexported (golint)
    • Line 93: warning: exported method MockDatabase.ComputeBlockStateTrie should have comment or be unexported (golint)
    • Line 99: warning: exported method MockDatabase.GetBlockBodyByBlockNumber should have comment or be unexported (golint)
    • Line 106: warning: exported method MockDatabase.GetBlockByBlockNumber should have comment or be unexported (golint)
    • Line 111: warning: exported method MockDatabase.GetBlockHeaderByBlockNumber should have comment or be unexported (golint)
    • Line 116: warning: exported method MockDatabase.GetRawBlockHeaderByBlockNumber should have comment or be unexported (golint)
    • Line 123: warning: exported method MockDatabase.GetBlockReceipts should have comment or be unexported (golint)
    • Line 128: warning: exported method MockDatabase.GetStateAndStorageTrieNodes should have comment or be unexported (golint)
    • Line 133: warning: exported method MockDatabase.AssertComputeBlockStateTrieCalledWith should have comment or be unexported (golint)
    • Line 138: warning: exported method MockDatabase.AssertGetBlockBodyByBlockNumberCalledWith should have comment or be unexported (golint)
    • Line 142: warning: exported method MockDatabase.AssertGetBlockByBlockNumberCalledwith should have comment or be unexported (golint)
    • Line 151: warning: exported method MockDatabase.AssertGetBlockHeaderByBlockNumberCalledWith should have comment or be unexported (golint)
    • Line 155: warning: exported method MockDatabase.AssertGetRawBlockHeaderByBlockNumberCalledWith should have comment or be unexported (golint)
    • Line 159: warning: exported method MockDatabase.AssertGetBlockReceiptsCalledWith should have comment or be unexported (golint)
    • Line 163: warning: exported method MockDatabase.AssertGetStateTrieNodesCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_block_transactions/node.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type EthTransactionNode should have comment or be unexported (golint)
    • Line 16: warning: exported method EthTransactionNode.RawData should have comment or be unexported (golint)
    • Line 20: warning: exported method EthTransactionNode.Cid should have comment or be unexported (golint)
    • Line 28: warning: exported method EthTransactionNode.Loggable should have comment or be unexported (golint)
    • Line 32: warning: exported method EthTransactionNode.Resolve should have comment or be unexported (golint)
    • Line 36: warning: exported method EthTransactionNode.Tree should have comment or be unexported (golint)
    • Line 40: warning: exported method EthTransactionNode.ResolveLink should have comment or be unexported (golint)
    • Line 44: warning: exported method EthTransactionNode.Copy should have comment or be unexported (golint)
    • Line 48: warning: exported method EthTransactionNode.Links should have comment or be unexported (golint)
    • Line 52: warning: exported method EthTransactionNode.Stat should have comment or be unexported (golint)
    • Line 56: warning: exported method EthTransactionNode.Size should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/core/block_validator.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type MockValidator should have comment or be unexported (golint)
    • Line 17: warning: exported function NewMockValidator should have comment or be unexported (golint)
    • Line 27: warning: exported method MockValidator.SetReturnErr should have comment or be unexported (golint)
    • Line 31: warning: exported method MockValidator.ValidateState should have comment or be unexported (golint)
    • Line 39: warning: exported method MockValidator.AssertValidateStateCalledWith should have comment or be unexported (golint)
    • eth-block-extractor/test_helpers/mocks/wrappers/core/state/database.go
    • Line 13: warning: exported type MockStateDatabase should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMockStateDatabase should have comment or be unexported (golint)
    • Line 22: warning: exported method MockStateDatabase.CreateFakeUnderlyingDatabase should have comment or be unexported (golint)
    • Line 26: warning: exported method MockStateDatabase.Database should have comment or be unexported (golint)
    • Line 30: warning: exported method MockStateDatabase.OpenTrie should have comment or be unexported (golint)
    • Line 34: warning: exported method MockStateDatabase.TrieDB should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_block_header/node.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type EthBlockHeaderNode should have comment or be unexported (golint)
    • Line 17: warning: exported method EthBlockHeaderNode.RawData should have comment or be unexported (golint)
    • Line 21: warning: exported method EthBlockHeaderNode.Cid should have comment or be unexported (golint)
    • Line 29: warning: exported method EthBlockHeaderNode.Loggable should have comment or be unexported (golint)
    • Line 33: warning: exported method EthBlockHeaderNode.Resolve should have comment or be unexported (golint)
    • Line 37: warning: exported method EthBlockHeaderNode.Tree should have comment or be unexported (golint)
    • Line 41: warning: exported method EthBlockHeaderNode.ResolveLink should have comment or be unexported (golint)
    • Line 45: warning: exported method EthBlockHeaderNode.Copy should have comment or be unexported (golint)
    • Line 49: warning: exported method EthBlockHeaderNode.Links should have comment or be unexported (golint)
    • Line 53: warning: exported method EthBlockHeaderNode.Stat should have comment or be unexported (golint)
    • Line 57: warning: exported method EthBlockHeaderNode.Size should have comment or be unexported (golint)
    • eth-block-extractor/pkg/db/database.go
    • Line 19: warning: exported var ErrNoSuchDb should have comment or be unexported (golint)
    • Line 21: warning: exported type ReadError should have comment or be unexported (golint)
    • Line 30: warning: exported type Database should have comment or be unexported (golint)
    • Line 40: warning: exported function CreateDatabase should have comment or be unexported (golint)
    • eth-block-extractor/pkg/db/level/database.go
    • Line 9: warning: exported type Database should have comment or be unexported (golint)
    • Line 15: warning: exported function NewLevelDatabase should have comment or be unexported (golint)
    • Line 23: warning: exported method Database.ComputeBlockStateTrie should have comment or be unexported (golint)
    • Line 27: warning: exported method Database.GetBlockBodyByBlockNumber should have comment or be unexported (golint)
    • Line 33: warning: exported method Database.GetBlockByBlockNumber should have comment or be unexported (golint)
    • Line 39: warning: exported method Database.GetBlockHeaderByBlockNumber should have comment or be unexported (golint)
    • Line 45: warning: exported method Database.GetRawBlockHeaderByBlockNumber should have comment or be unexported (golint)
    • Line 51: warning: exported method Database.GetBlockReceipts should have comment or be unexported (golint)
    • Line 57: warning: exported method Database.GetStateAndStorageTrieNodes should have comment or be unexported (golint)
    • eth-block-extractor/pkg/ipfs/eth_block_header/dag_putter.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported const EthBlockHeaderCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type BlockHeaderDagPutter should have comment or be unexported (golint)
    • Line 21: warning: exported function NewBlockHeaderDagPutter should have comment or be unexported (golint)
    • Line 25: warning: exported method BlockHeaderDagPutter.DagPut should have comment or be unexported (golint)
    • eth-block-extractor/pkg/transformers/eth_state_trie.go
    • Line 12: warning: exported type EthStateTrieTransformer should have comment or be unexported (golint)
    • Line 18: warning: exported function NewEthStateTrieTransformer should have comment or be unexported (golint)
    • Line 26: warning: exported method EthStateTrieTransformer.Execute should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/trie/iterator.go
    • Line 8: warning: exported type GethTrieNodeIterator should have comment or be unexported (golint)
    • Line 15: warning: exported type NodeIterator should have comment or be unexported (golint)
    • Line 19: warning: exported function NewNodeIterator should have comment or be unexported (golint)
    • Line 23: warning: exported method NodeIterator.Hash should have comment or be unexported (golint)
    • Line 27: warning: exported method NodeIterator.Leaf should have comment or be unexported (golint)
    • Line 31: warning: exported method NodeIterator.LeafBlob should have comment or be unexported (golint)
    • Line 35: warning: exported method NodeIterator.Next should have comment or be unexported (golint)
    • eth-block-extractor/pkg/wrappers/core/state/statedb.go
    • Line 8: warning: exported type GethStateDB should have comment or be unexported (golint)
    • Line 13: warning: exported type StateDB should have comment or be unexported (golint)
    • Line 17: warning: exported method StateDB.StateDB should have comment or be unexported (golint)
    • Line 21: warning: exported method StateDB.Commit 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!