Preparing report...

Report for github.com/umee-network/umee

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


gocyclo97%

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.


golint73%

Golint is a linter for Go source code.

    • umee/x/leverage/module.go
    • Line 33: warning: exported function NewAppModuleBasic should have comment or be unexported (golint)
    • Line 42: warning: exported method AppModuleBasic.RegisterCodec should have comment or be unexported (golint)
    • Line 46: warning: exported method AppModuleBasic.RegisterLegacyAminoCodec should have comment or be unexported (golint)
    • Line 102: warning: exported function NewAppModule should have comment or be unexported (golint)
    • Line 119: warning: comment on exported method AppModule.Route should be of the form "Route ..." (golint)
    • umee/x/leverage/keeper/keeper.go
    • Line 14: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 22: warning: exported function NewKeeper should have comment or be unexported (golint)
    • Line 30: warning: exported method Keeper.Logger should have comment or be unexported (golint)
    • umee/app/app.go
    • Line 221: warning: exported function New should have comment or be unexported (golint)
    • Line 750: warning: exported function VerifyAddressFormat should have comment or be unexported (golint)
    • umee/x/leverage/types/tx.go
    • Line 11: warning: exported method MsgLendAsset.ValidateBasic should have comment or be unexported (golint)
    • Line 28: warning: exported method MsgWithdrawAsset.ValidateBasic should have comment or be unexported (golint)
    • Line 45: warning: exported method MsgLendAsset.GetSigners should have comment or be unexported (golint)
    • Line 54: warning: exported method MsgWithdrawAsset.GetSigners should have comment or be unexported (golint)
    • umee/app/genesis.go
    • Line 9: warning: comment on exported type GenesisState should be of the form "GenesisState ..." (with optional leading article) (golint)
    • umee/x/leverage/types/codec.go
    • Line 9: warning: exported function RegisterCodec should have comment or be unexported (golint)
    • Line 13: warning: exported function RegisterInterfaces should have comment or be unexported (golint)
    • Line 19: warning: exported var ModuleCdc should have comment or be unexported (golint)
    • umee/x/leverage/types/keys.go
    • Line 16: warning: comment on exported const AssetAssociatedUtokenPrefix should be of the form "AssetAssociatedUtokenPrefix ..." (golint)
    • Line 18: warning: exported const UtokenAssociatedAssetPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported function KeyPrefix should have comment or be unexported (golint)
    • umee/tests/e2e/ethereum.go
    • Line 3: warning: exported type EthereumConfig should have comment or be unexported (golint)
    • Line 16: warning: exported type Allocation should have comment or be unexported (golint)
    • Line 20: warning: exported type EthereumGenesis 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!