Preparing report...

Report for github.com/ChainSafe/ethermint

A+    Excellent!    Found 13 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/rpc/websockets.go
    • Line 32: warning: exported type SubscriptionResponseJSON should have comment or be unexported (golint)
    • Line 38: warning: exported type SubscriptionNotification should have comment or be unexported (golint)
    • Line 44: warning: exported type SubscriptionResult should have comment or be unexported (golint)
    • Line 49: warning: exported type ErrorResponseJSON should have comment or be unexported (golint)
    • Line 55: warning: exported type ErrorMessageJSON should have comment or be unexported (golint)
    • ethermint/x/faucet/alias.go
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported var NewKeeper should have comment or be unexported (golint)
    • Line 23: warning: exported type Keeper 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)
    • ethermint/x/faucet/keeper/keeper.go
    • Line 96: warning: exported method Keeper.GetTimeout should have comment or be unexported (golint)
    • Line 109: warning: exported method Keeper.SetTimout should have comment or be unexported (golint)
    • Line 115: warning: exported method Keeper.IsEnabled should have comment or be unexported (golint)
    • Line 127: warning: exported method Keeper.SetEnabled should have comment or be unexported (golint)
    • Line 133: warning: exported method Keeper.GetCap should have comment or be unexported (golint)
    • Line 146: warning: exported method Keeper.SetCap should have comment or be unexported (golint)
    • Line 152: warning: exported method Keeper.GetMaxPerRequest should have comment or be unexported (golint)
    • Line 165: warning: exported method Keeper.SetMaxPerRequest should have comment or be unexported (golint)
    • Line 171: warning: exported method Keeper.GetFunded should have comment or be unexported (golint)
    • Line 184: warning: exported method Keeper.SetFunded should have comment or be unexported (golint)
    • ethermint/x/evm/types/querier.go
    • Line 97: warning: comment on exported type QueryResAccount should be of the form "QueryResAccount ..." (with optional leading article) (golint)
    • Line 104: warning: exported type QueryResExportAccount 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!