Preparing report...

Report for github.com/majesticchain/majestic-star-chain

(v0.0.0-20220106105258-3689a4bb40a0)

A+    Excellent!    Found 28 issues across 91 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.

    • app/export.go
    • Line 66: warning: cyclomatic complexity 18 of function (*Evmos).prepForZeroHeightGenesis() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • x/erc20/client/cli/query.go
    • Line 68: warning: comment on exported function GetTokenPairCmd should be of the form "GetTokenPairCmd ..." (golint)
    • Line 100: warning: comment on exported function GetParamsCmd should be of the form "GetParamsCmd ..." (golint)
    • x/erc20/client/rest/rest.go
    • Line 54: warning: exported function RegisterCoinProposalRESTHandler should have comment or be unexported (golint)
    • Line 61: warning: exported function RegisterERC20ProposalRESTHandler should have comment or be unexported (golint)
    • Line 68: warning: exported function ToggleTokenRelayRESTHandler should have comment or be unexported (golint)
    • Line 75: warning: exported function UpdateTokenPairERC20ProposalRESTHandler should have comment or be unexported (golint)
    • x/erc20/types/msg.go
    • Line 17: warning: exported const TypeMsgConvertCoin should have comment (or a comment on this block) or be unexported (golint)
    • x/epochs/types/hooks.go
    • Line 7: warning: exported type EpochHooks should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type MultiEpochHooks should be of the form "MultiEpochHooks ..." (with optional leading article) (golint)
    • Line 19: warning: exported function NewMultiEpochHooks should have comment or be unexported (golint)
    • x/erc20/module.go
    • Line 33: warning: comment on exported type AppModuleBasic should be of the form "AppModuleBasic ..." (with optional leading article) (golint)
    • Line 36: warning: exported method AppModuleBasic.Name should have comment or be unexported (golint)
    • Line 59: warning: exported method AppModuleBasic.ValidateGenesis should have comment or be unexported (golint)
    • Line 72: warning: exported method AppModuleBasic.RegisterGRPCGatewayRoutes should have comment or be unexported (golint)
    • Line 88: warning: exported type AppModule should have comment or be unexported (golint)
    • Line 106: warning: exported method AppModule.Name should have comment or be unexported (golint)
    • Line 110: warning: exported method AppModule.RegisterInvariants should have comment or be unexported (golint)
    • Line 112: warning: exported method AppModule.NewHandler should have comment or be unexported (golint)
    • Line 116: warning: exported method AppModule.Route should have comment or be unexported (golint)
    • Line 120: warning: exported method AppModule.QuerierRoute should have comment or be unexported (golint)
    • Line 124: warning: exported method AppModule.LegacyQuerierHandler should have comment or be unexported (golint)
    • Line 128: warning: exported method AppModule.RegisterServices should have comment or be unexported (golint)
    • Line 135: warning: exported method AppModule.BeginBlock should have comment or be unexported (golint)
    • Line 138: warning: exported method AppModule.EndBlock should have comment or be unexported (golint)
    • Line 142: warning: exported method AppModule.InitGenesis should have comment or be unexported (golint)
    • Line 150: warning: exported method AppModule.ExportGenesis should have comment or be unexported (golint)
    • Line 155: warning: exported method AppModule.GenerateGenesisState should have comment or be unexported (golint)
    • Line 158: warning: exported method AppModule.ProposalContents should have comment or be unexported (golint)
    • Line 162: warning: exported method AppModule.RandomizedParams should have comment or be unexported (golint)
    • Line 166: warning: exported method AppModule.RegisterStoreDecoder should have comment or be unexported (golint)
    • Line 169: warning: exported method AppModule.WeightedOperations should have comment or be unexported (golint)
    • cmd/mjtd/root.go
    • Line 45: warning: exported const EnvPrefix should have comment (or a comment on this block) or be unexported (golint)
    • app/app.go
    • Line 616: warning: comment on exported method Evmos.DeliverTx should be of the form "DeliverTx ..." (golint)
    • Line 745: warning: exported method Evmos.RegisterTxService should have comment or be unexported (golint)
    • Line 749: warning: exported method Evmos.RegisterTendermintService should have comment or be unexported (golint)
    • x/epochs/types/identifier.go
    • Line 8: warning: exported function ValidateEpochIdentifierInterface should have comment or be unexported (golint)
    • Line 20: warning: exported function ValidateEpochIdentifierString should have comment or be unexported (golint)
    • x/erc20/types/events.go
    • Line 29: warning: comment on exported type LogTransfer should be of the form "LogTransfer ..." (with optional leading article) (golint)
    • x/erc20/types/genesis.go
    • Line 5: warning: exported function NewGenesisState should have comment or be unexported (golint)
    • Line 12: warning: exported method GenesisState.Validate should have comment or be unexported (golint)
    • Line 35: warning: exported function DefaultGenesisState should have comment or be unexported (golint)
    • 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)
    • x/erc20/types/params.go
    • Line 31: warning: exported function DefaultParams should have comment or be unexported (golint)
    • Line 55: warning: exported method Params.Validate should have comment or be unexported (golint)
    • x/epochs/types/events.go
    • Line 4: warning: exported const EventTypeEpochEnd should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!