Preparing report...

Report for github.com/cosmos/ethermint

A+    Excellent!    Found 14 issues across 123 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!


gocyclo95%

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.


golint92%

Golint is a linter for Go source code.

    • ethermint/x/evm/types/statedb.go
    • Line 345: warning: exported method CommitStateDB.SetBlockHash should have comment or be unexported (golint)
    • Line 775: warning: exported function CopyCommitStateDB should have comment or be unexported (golint)
    • ethermint/rpc/websockets/types.go
    • Line 13: warning: exported type SubscriptionResponseJSON should have comment or be unexported (golint)
    • Line 19: warning: exported type SubscriptionNotification should have comment or be unexported (golint)
    • Line 25: warning: exported type SubscriptionResult should have comment or be unexported (golint)
    • Line 30: warning: exported type ErrorResponseJSON should have comment or be unexported (golint)
    • Line 36: warning: exported type ErrorMessageJSON should have comment or be unexported (golint)
    • ethermint/tests/utils.go
    • Line 19: warning: exported type Request should have comment or be unexported (golint)
    • Line 26: warning: exported type RPCError 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 152: warning: comment on exported function DeployTestContract should be of the form "DeployTestContract ..." (golint)
    • Line 173: warning: exported function DeployTestContractWithFunction should have comment or be unexported (golint)
    • Line 213: warning: comment on exported function GetTransactionReceipt should be of the form "GetTransactionReceipt ..." (golint)
    • Line 225: warning: exported function WaitForReceipt should have comment or be unexported (golint)
    • Line 238: warning: exported function GetNonce should have comment or be unexported (golint)
    • Line 251: warning: exported function UnlockAllAccounts should have comment or be unexported (golint)
    • ethermint/x/evm/types/querier.go
    • Line 92: warning: comment on exported type QueryResAccount should be of the form "QueryResAccount ..." (with optional leading article) (golint)
    • Line 99: warning: exported type QueryResExportAccount should have comment or be unexported (golint)
    • ethermint/x/evm/alias.go
    • Line 22: warning: comment on exported type GenesisState should be of the form "GenesisState ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Keeper should be of the form "Keeper ..." (with optional leading article) (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)

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!