Preparing report...

Report for github.com/vulcanize/ipfs-blockchain-watcher

A+    Excellent!    Found 29 issues across 78 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!


gocyclo94%

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.


golint69%

Golint is a linter for Go source code.

    • ipfs-blockchain-watcher/pkg/shared/chain_type.go
    • Line 28: warning: exported const UnknownChain should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported method ChainType.API should have comment or be unexported (golint)
    • Line 65: warning: exported function NewChainType should have comment or be unexported (golint)
    • ipfs-blockchain-watcher/pkg/ipfs/ipld/eth_receipt.go
    • Line 31: warning: exported type EthReceipt should have comment or be unexported (golint)
    • Line 84: warning: exported method EthReceipt.RawData should have comment or be unexported (golint)
    • Line 88: warning: exported method EthReceipt.Cid should have comment or be unexported (golint)
    • Line 93: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • Line 98: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • Line 106: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • Line 140: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • Line 149: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • Line 173: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • Line 178: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • Line 187: warning: receiver name r should be consistent with previous receiver name node for EthReceipt (golint)
    • ipfs-blockchain-watcher/pkg/shared/data_type.go
    • Line 28: warning: exported const UnknownDataType should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: comment on exported function GenerateDataTypeFromString should be of the form "GenerateDataTypeFromString ..." (golint)
    • Line 82: warning: exported function SupportedDataType should have comment or be unexported (golint)
    • ipfs-blockchain-watcher/pkg/postgres/errors.go
    • Line 24: warning: exported const BeginTransactionFailedMsg should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported function ErrBeginTransactionFailed should have comment or be unexported (golint)
    • Line 35: warning: exported function ErrDBConnectionFailed should have comment or be unexported (golint)
    • Line 39: warning: exported function ErrDBDeleteFailed should have comment or be unexported (golint)
    • Line 43: warning: exported function ErrDBInsertFailed should have comment or be unexported (golint)
    • Line 47: warning: exported function ErrUnableToSetNode 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!


misspell97%

Misspell Finds commonly misspelled English words