Preparing report...

Report for github.com/tharsis/ethermint

A+    Excellent!    Found 31 issues across 129 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!


gocyclo93%

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.


golint81%

Golint is a linter for Go source code.

    • ethermint/ethereum/rpc/types/utils.go
    • Line 249: warning: exported function DecodeTx should have comment or be unexported (golint)
    • Line 268: warning: exported type DataError should have comment or be unexported (golint)
    • Line 286: warning: exported type SDKTxLogs should have comment or be unexported (golint)
    • Line 290: warning: exported const LogRevertedFlag should have comment or be unexported (golint)
    • Line 292: warning: exported function ErrRevertedWith should have comment or be unexported (golint)
    • ethermint/version/version.go
    • Line 9: warning: exported var AppVersion should have comment or be unexported (golint)
    • Line 26: warning: exported function Version should have comment or be unexported (golint)
    • ethermint/x/evm/types/utils.go
    • Line 14: warning: exported var EmptyCodeHash should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function DecodeTransactionLogs should be of the form "DecodeTransactionLogs ..." (golint)
    • ethermint/tests/solidity/suites/basic/main.go
    • Line 18: warning: exported var HOST should have comment or be unexported (golint)
    • Line 22: warning: exported type Request should have comment or be unexported (golint)
    • Line 29: warning: exported type RPCError should have comment or be unexported (golint)
    • Line 35: warning: exported type Response should have comment or be unexported (golint)
    • ethermint/x/evm/module.go
    • Line 63: warning: exported method AppModuleBasic.RegisterGRPCGatewayRoutes should have comment or be unexported (golint)
    • Line 115: warning: comment on exported method AppModule.RegisterServices should be of the form "RegisterServices ..." (golint)
    • ethermint/ethereum/rpc/websockets.go
    • Line 32: warning: exported type WebsocketsServer should have comment or be unexported (golint)
    • Line 36: warning: exported type SubscriptionResponseJSON should have comment or be unexported (golint)
    • Line 42: warning: exported type SubscriptionNotification should have comment or be unexported (golint)
    • Line 48: warning: exported type SubscriptionResult should have comment or be unexported (golint)
    • Line 53: warning: exported type ErrorResponseJSON should have comment or be unexported (golint)
    • Line 59: warning: exported type ErrorMessageJSON should have comment or be unexported (golint)
    • Line 71: warning: exported function NewWebsocketsServer should have comment or be unexported (golint)
    • ethermint/app/app.go
    • Line 617: warning: exported method EthermintApp.RegisterTxService should have comment or be unexported (golint)
    • Line 621: warning: exported method EthermintApp.RegisterTendermintService should have comment or be unexported (golint)
    • ethermint/x/evm/keeper/keeper.go
    • Line 188: warning: comment on exported method Keeper.GetTxLogs should be of the form "GetTxLogs ..." (golint)
    • Line 214: warning: comment on exported method Keeper.DeleteTxLogs should be of the form "DeleteTxLogs ..." (golint)
    • Line 244: warning: exported method Keeper.DeleteState should have comment or be unexported (golint)
    • ethermint/x/evm/types/codec.go
    • Line 10: warning: exported type ExtensionOptionsEthereumTxI should have comment or be unexported (golint)
    • Line 11: warning: exported type ExtensionOptionsWeb3TxI should have comment or be unexported (golint)
    • Line 33: warning: exported var ModuleCdc should have comment or be unexported (golint)
    • ethermint/x/evm/types/key.go
    • Line 19: warning: comment on exported const TransientKey should be of the form "TransientKey ..." (golint)
    • Line 60: warning: exported var KeyPrefixTransientSuicided should have comment or be unexported (golint)
    • ethermint/tests/rpc/utils.go
    • Line 19: warning: exported type Request should have comment or be unexported (golint)
    • Line 26: warning: exported type Error should have comment or be unexported (golint)
    • Line 32: warning: exported type Response should have comment or be unexported (golint)
    • Line 39: warning: exported var HOST should have comment or be unexported (golint)
    • Line 42: warning: exported function GetAddress should have comment or be unexported (golint)
    • Line 57: warning: exported function CreateRequest should have comment or be unexported (golint)
    • Line 66: warning: exported function Call should have comment or be unexported (golint)
    • Line 92: warning: exported function CallWithError should have comment or be unexported (golint)
    • Line 129: warning: comment on exported function HexToBigInt should be of the form "HexToBigInt ..." (golint)
    • Line 137: warning: comment on exported function SendTestTransaction should be of the form "SendTestTransaction ..." (golint)
    • Line 157: warning: comment on exported function DeployTestContract should be of the form "DeployTestContract ..." (golint)
    • Line 182: warning: exported function DeployTestContractWithFunction should have comment or be unexported (golint)
    • Line 225: warning: comment on exported function GetTransactionReceipt should be of the form "GetTransactionReceipt ..." (golint)
    • Line 237: warning: exported function WaitForReceipt should have comment or be unexported (golint)
    • Line 250: warning: exported function GetNonce should have comment or be unexported (golint)
    • Line 263: warning: exported function UnlockAllAccounts 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!