Preparing report...

Report for github.com/cosmwasm/wasmd

A+    Excellent!    Found 59 issues across 118 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!


golint55%

Golint is a linter for Go source code.

    • wasmd/x/wasm/keeper/wasmtesting/messenger.go
    • Line 10: warning: exported type MockMessageHandler should have comment or be unexported (golint)
    • Line 14: warning: exported method MockMessageHandler.DispatchMsg should have comment or be unexported (golint)
    • Line 21: warning: exported function NewCapturingMessageHandler should have comment or be unexported (golint)
    • Line 32: warning: exported function NewErroringMessageHandler should have comment or be unexported (golint)
    • wasmd/x/wasm/types/params.go
    • Line 22: warning: exported var ParamStoreKeyUploadAccess should have comment or be unexported (golint)
    • Line 23: warning: exported var ParamStoreKeyInstantiateAccess should have comment or be unexported (golint)
    • Line 24: warning: exported var ParamStoreKeyMaxWasmCodeSize should have comment or be unexported (golint)
    • Line 26: warning: exported var AllAccessTypes should have comment or be unexported (golint)
    • Line 32: warning: exported method AccessType.With should have comment or be unexported (golint)
    • Line 59: warning: exported method AccessType.UnmarshalText should have comment or be unexported (golint)
    • Line 69: warning: exported method AccessType.MarshalText should have comment or be unexported (golint)
    • Line 73: warning: exported method AccessType.MarshalJSONPB should have comment or be unexported (golint)
    • Line 77: warning: exported method AccessType.UnmarshalJSONPB should have comment or be unexported (golint)
    • Line 81: warning: exported method AccessConfig.Equals should have comment or be unexported (golint)
    • Line 86: warning: exported var DefaultUploadAccess should have comment or be unexported (golint)
    • Line 168: warning: exported method AccessConfig.ValidateBasic should have comment or be unexported (golint)
    • Line 168: warning: receiver name v should be consistent with previous receiver name a for AccessConfig (golint)
    • Line 184: warning: exported method AccessConfig.Allowed should have comment or be unexported (golint)
    • Line 184: warning: receiver name v should be consistent with previous receiver name a for AccessConfig (golint)
    • wasmd/x/wasm/types/types.go
    • Line 19: warning: exported method Model.ValidateBasic should have comment or be unexported (golint)
    • Line 26: warning: exported method CodeInfo.ValidateBasic should have comment or be unexported (golint)
    • Line 48: warning: exported var AllCodeHistoryTypes should have comment or be unexported (golint)
    • Line 147: warning: exported method ContractInfo.InitialHistory should have comment or be unexported (golint)
    • Line 156: warning: exported method ContractInfo.AddMigration should have comment or be unexported (golint)
    • Line 198: warning: receiver name m should be consistent with previous receiver name c for ContractInfo (golint)
    • wasmd/x/wasm/keeper/query_plugins.go
    • Line 17: warning: exported type QueryHandler should have comment or be unexported (golint)
    • Line 24: warning: exported function NewQueryHandler should have comment or be unexported (golint)
    • Line 39: warning: exported type GRPCQueryRouter should have comment or be unexported (golint)
    • Line 47: warning: exported method QueryHandler.Query should have comment or be unexported (golint)
    • Line 59: warning: exported method QueryHandler.GasConsumed should have comment or be unexported (golint)
    • Line 63: warning: exported type CustomQuerier should have comment or be unexported (golint)
    • Line 65: warning: exported type QueryPlugins should have comment or be unexported (golint)
    • Line 84: warning: exported function DefaultQueryPlugins should have comment or be unexported (golint)
    • Line 102: warning: exported method QueryPlugins.Merge should have comment or be unexported (golint)
    • Line 152: warning: exported function BankQuerier should have comment or be unexported (golint)
    • Line 184: warning: exported function NoCustomQuerier should have comment or be unexported (golint)
    • Line 188: warning: exported function IBCQuerier should have comment or be unexported (golint)
    • Line 259: warning: exported function StargateQuerier should have comment or be unexported (golint)
    • Line 277: warning: exported function StakingQuerier should have comment or be unexported (golint)
    • Line 461: warning: exported function WasmQuerier should have comment or be unexported (golint)
    • wasmd/x/wasm/ibctesting/chain.go
    • Line 48: warning: comment on exported const TrustingPeriod should be of the form "TrustingPeriod ..." (golint)
    • Line 50: warning: exported const UnbondingPeriod should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: comment on exported const Title should be of the form "Title ..." (golint)
    • Line 69: warning: exported var DefaultOpenInitVersion should have comment or be unexported (golint)
    • Line 71: warning: comment on exported var DefaultTrustLevel should be of the form "DefaultTrustLevel ..." (golint)
    • Line 114: warning: exported type PacketAck should have comment or be unexported (golint)
    • Line 526: warning: comment on exported method TestChain.AddTestChannel should be of the form "AddTestChannel ..." (golint)
    • Line 534: warning: comment on exported method TestChain.NextChannel should be of the form "NextChannel ..." (golint)
    • wasmd/x/wasm/types/codec.go
    • Line 30: warning: exported function RegisterInterfaces should have comment or be unexported (golint)
    • Line 63: warning: exported var ModuleCdc should have comment or be unexported (golint)
    • wasmd/x/wasm/types/genesis.go
    • Line 9: warning: exported method Sequence.ValidateBasic should have comment or be unexported (golint)
    • Line 16: warning: exported method GenesisState.ValidateBasic should have comment or be unexported (golint)
    • Line 43: warning: exported method Code.ValidateBasic should have comment or be unexported (golint)
    • Line 56: warning: exported method Contract.ValidateBasic should have comment or be unexported (golint)
    • Line 89: warning: exported method GenesisState_GenMsgs.ValidateBasic should have comment or be unexported (golint)
    • wasmd/x/wasm/ibctesting/wasm.go
    • Line 34: warning: exported method TestChain.StoreCodeFile should have comment or be unexported (golint)
    • Line 49: warning: exported method TestChain.StoreCode should have comment or be unexported (golint)
    • Line 65: warning: exported method TestChain.InstantiateContract should have comment or be unexported (golint)
    • Line 87: warning: comment on exported method TestChain.SmartQuery should be of the form "SmartQuery ..." (golint)
    • wasmd/x/wasm/ibctesting/coordinator.go
    • Line 20: warning: exported var ChainIDPrefix should have comment or be unexported (golint)
    • Line 384: warning: exported method Coordinator.RelayAndAckPendingPackets should have comment or be unexported (golint)
    • Line 727: warning: exported method Coordinator.CloseChannel should have comment or be unexported (golint)
    • wasmd/x/wasm/client/cli/genesis_msg.go
    • Line 375: warning: exported function NewGenesisData should have comment or be unexported (golint)
    • Line 379: warning: exported type DefaultGenesisReader should have comment or be unexported (golint)
    • Line 381: warning: exported method DefaultGenesisReader.ReadWasmGenesis should have comment or be unexported (golint)
    • wasmd/x/wasm/client/cli/query.go
    • Line 21: warning: exported function GetQueryCmd should have comment or be unexported (golint)
    • Line 214: warning: exported function GetCmdGetContractStateAll should have comment or be unexported (golint)
    • Line 254: warning: exported function GetCmdGetContractStateRaw should have comment or be unexported (golint)
    • Line 295: warning: exported function GetCmdGetContractStateSmart should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/keeper.go
    • Line 39: warning: exported type CoinTransferrer should have comment or be unexported (golint)
    • Line 139: warning: exported method Keeper.GetMaxWasmCodeSize should have comment or be unexported (golint)
    • Line 519: warning: exported method Keeper.GetContractHistory should have comment or be unexported (golint)
    • Line 599: warning: exported method Keeper.GetContractInfo should have comment or be unexported (golint)
    • Line 610: warning: exported method Keeper.HasContractInfo should have comment or be unexported (golint)
    • Line 621: warning: exported method Keeper.IterateContractInfo should have comment or be unexported (golint)
    • Line 634: warning: exported method Keeper.GetContractState should have comment or be unexported (golint)
    • Line 655: warning: exported method Keeper.GetCodeInfo should have comment or be unexported (golint)
    • Line 671: warning: exported method Keeper.IterateCodeInfos should have comment or be unexported (golint)
    • Line 684: warning: exported method Keeper.GetByteCode should have comment or be unexported (golint)
    • Line 937: warning: exported function NewMultipliedGasMeter should have comment or be unexported (golint)
    • Line 943: warning: exported method MultipliedGasMeter.GasConsumed should have comment or be unexported (golint)
    • Line 976: warning: exported function NewBankCoinTransferrer should have comment or be unexported (golint)
    • Line 1009: warning: exported function NewDefaultWasmVMContractResponseHandler should have comment or be unexported (golint)
    • wasmd/x/wasm/alias.go
    • Line 1: warning: package comment should be of the form "Package wasm ..." (golint)
    • Line 15: warning: exported const DefaultParamspace should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 43: warning: exported var RegisterInterfaces should have comment or be unexported (golint)
    • Line 78: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • Line 100: warning: exported type ProposalType should have comment or be unexported (golint)
    • Line 101: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 102: warning: exported type Code should have comment or be unexported (golint)
    • Line 103: warning: exported type Contract should have comment or be unexported (golint)
    • Line 104: warning: exported type MsgStoreCode should have comment or be unexported (golint)
    • Line 105: warning: exported type MsgStoreCodeResponse should have comment or be unexported (golint)
    • Line 106: warning: exported type MsgInstantiateContract should have comment or be unexported (golint)
    • Line 107: warning: exported type MsgInstantiateContractResponse should have comment or be unexported (golint)
    • Line 108: warning: exported type MsgExecuteContract should have comment or be unexported (golint)
    • Line 109: warning: exported type MsgExecuteContractResponse should have comment or be unexported (golint)
    • Line 110: warning: exported type MsgMigrateContract should have comment or be unexported (golint)
    • Line 111: warning: exported type MsgMigrateContractResponse should have comment or be unexported (golint)
    • Line 112: warning: exported type MsgUpdateAdmin should have comment or be unexported (golint)
    • Line 113: warning: exported type MsgUpdateAdminResponse should have comment or be unexported (golint)
    • Line 114: warning: exported type MsgClearAdmin should have comment or be unexported (golint)
    • Line 115: warning: exported type MsgWasmIBCCall should have comment or be unexported (golint)
    • Line 116: warning: exported type MsgClearAdminResponse should have comment or be unexported (golint)
    • Line 117: warning: exported type MsgServer should have comment or be unexported (golint)
    • Line 118: warning: exported type Model should have comment or be unexported (golint)
    • Line 119: warning: exported type CodeInfo should have comment or be unexported (golint)
    • Line 120: warning: exported type ContractInfo should have comment or be unexported (golint)
    • Line 121: warning: exported type CreatedAt should have comment or be unexported (golint)
    • Line 122: warning: exported type Config should have comment or be unexported (golint)
    • Line 123: warning: exported type CodeInfoResponse should have comment or be unexported (golint)
    • Line 124: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 125: warning: exported type BankEncoder should have comment or be unexported (golint)
    • Line 126: warning: exported type CustomEncoder should have comment or be unexported (golint)
    • Line 127: warning: exported type StakingEncoder should have comment or be unexported (golint)
    • Line 128: warning: exported type WasmEncoder should have comment or be unexported (golint)
    • Line 129: warning: exported type MessageEncoders should have comment or be unexported (golint)
    • Line 130: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 131: warning: exported type QueryHandler should have comment or be unexported (golint)
    • Line 132: warning: exported type CustomQuerier should have comment or be unexported (golint)
    • Line 133: warning: exported type QueryPlugins should have comment or be unexported (golint)
    • Line 134: warning: exported type Option should have comment or be unexported (golint)
    • wasmd/app/app.go
    • Line 526: warning: comment on exported method WasmApp.BeginBlocker should be of the form "BeginBlocker ..." (golint)
    • Line 613: warning: exported method WasmApp.AppCodec should have comment or be unexported (golint)
    • wasmd/app/test_helpers.go
    • Line 195: warning: exported type GenerateAccountStrategy should have comment or be unexported (golint)
    • Line 255: warning: comment on exported function AddTestAddrsIncremental should be of the form "AddTestAddrsIncremental ..." (golint)
    • Line 296: warning: exported function TestAddr should have comment or be unexported (golint)
    • Line 323: warning: exported const DefaultGas should have comment or be unexported (golint)
    • wasmd/x/wasm/ibc.go
    • Line 17: warning: exported type IBCHandler should have comment or be unexported (golint)
    • Line 22: warning: exported function NewIBCHandler should have comment or be unexported (golint)
    • Line 295: warning: exported function ValidateChannelParams should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/test_fuzz.go
    • Line 12: warning: exported var ModelFuzzers should have comment or be unexported (golint)
    • Line 14: warning: exported function FuzzAddr should have comment or be unexported (golint)
    • Line 18: warning: exported function FuzzAddrString should have comment or be unexported (golint)
    • Line 24: warning: exported function FuzzAbsoluteTxPosition should have comment or be unexported (golint)
    • Line 29: warning: exported function FuzzContractInfo should have comment or be unexported (golint)
    • Line 37: warning: exported function FuzzContractCodeHistory should have comment or be unexported (golint)
    • Line 50: warning: exported function FuzzStateModel should have comment or be unexported (golint)
    • Line 58: warning: exported function FuzzAccessType should have comment or be unexported (golint)
    • Line 68: warning: exported function FuzzAccessConfig should have comment or be unexported (golint)
    • wasmd/x/wasm/types/tx.go
    • Line 11: warning: exported method MsgStoreCode.Route should have comment or be unexported (golint)
    • Line 15: warning: exported method MsgStoreCode.Type should have comment or be unexported (golint)
    • Line 19: warning: exported method MsgStoreCode.ValidateBasic should have comment or be unexported (golint)
    • Line 36: warning: exported method MsgStoreCode.GetSignBytes should have comment or be unexported (golint)
    • Line 41: warning: exported method MsgStoreCode.GetSigners should have comment or be unexported (golint)
    • Line 49: warning: exported method MsgInstantiateContract.Route should have comment or be unexported (golint)
    • Line 53: warning: exported method MsgInstantiateContract.Type should have comment or be unexported (golint)
    • Line 57: warning: exported method MsgInstantiateContract.ValidateBasic should have comment or be unexported (golint)
    • Line 86: warning: exported method MsgInstantiateContract.GetSignBytes should have comment or be unexported (golint)
    • Line 91: warning: exported method MsgInstantiateContract.GetSigners should have comment or be unexported (golint)
    • Line 100: warning: exported method MsgExecuteContract.Route should have comment or be unexported (golint)
    • Line 104: warning: exported method MsgExecuteContract.Type should have comment or be unexported (golint)
    • Line 108: warning: exported method MsgExecuteContract.ValidateBasic should have comment or be unexported (golint)
    • Line 125: warning: exported method MsgExecuteContract.GetSignBytes should have comment or be unexported (golint)
    • Line 130: warning: exported method MsgExecuteContract.GetSigners should have comment or be unexported (golint)
    • Line 139: warning: exported method MsgMigrateContract.Route should have comment or be unexported (golint)
    • Line 143: warning: exported method MsgMigrateContract.Type should have comment or be unexported (golint)
    • Line 147: warning: exported method MsgMigrateContract.ValidateBasic should have comment or be unexported (golint)
    • Line 164: warning: exported method MsgMigrateContract.GetSignBytes should have comment or be unexported (golint)
    • Line 169: warning: exported method MsgMigrateContract.GetSigners should have comment or be unexported (golint)
    • Line 178: warning: exported method MsgUpdateAdmin.Route should have comment or be unexported (golint)
    • Line 182: warning: exported method MsgUpdateAdmin.Type should have comment or be unexported (golint)
    • Line 186: warning: exported method MsgUpdateAdmin.ValidateBasic should have comment or be unexported (golint)
    • Line 202: warning: exported method MsgUpdateAdmin.GetSignBytes should have comment or be unexported (golint)
    • Line 207: warning: exported method MsgUpdateAdmin.GetSigners should have comment or be unexported (golint)
    • Line 216: warning: exported method MsgClearAdmin.Route should have comment or be unexported (golint)
    • Line 220: warning: exported method MsgClearAdmin.Type should have comment or be unexported (golint)
    • Line 224: warning: exported method MsgClearAdmin.ValidateBasic should have comment or be unexported (golint)
    • Line 234: warning: exported method MsgClearAdmin.GetSignBytes should have comment or be unexported (golint)
    • Line 239: warning: exported method MsgClearAdmin.GetSigners should have comment or be unexported (golint)
    • Line 248: warning: exported method MsgIBCSend.Route should have comment or be unexported (golint)
    • Line 252: warning: exported method MsgIBCSend.Type should have comment or be unexported (golint)
    • Line 256: warning: exported method MsgIBCSend.ValidateBasic should have comment or be unexported (golint)
    • Line 260: warning: exported method MsgIBCSend.GetSignBytes should have comment or be unexported (golint)
    • Line 264: warning: exported method MsgIBCSend.GetSigners should have comment or be unexported (golint)
    • Line 268: warning: exported method MsgIBCCloseChannel.Route should have comment or be unexported (golint)
    • Line 272: warning: exported method MsgIBCCloseChannel.Type should have comment or be unexported (golint)
    • Line 276: warning: exported method MsgIBCCloseChannel.ValidateBasic should have comment or be unexported (golint)
    • Line 280: warning: exported method MsgIBCCloseChannel.GetSignBytes should have comment or be unexported (golint)
    • Line 284: warning: exported method MsgIBCCloseChannel.GetSigners should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/authz_policy.go
    • Line 8: warning: exported type AuthorizationPolicy should have comment or be unexported (golint)
    • Line 14: warning: exported type DefaultAuthorizationPolicy should have comment or be unexported (golint)
    • Line 17: warning: exported method DefaultAuthorizationPolicy.CanCreateCode should have comment or be unexported (golint)
    • Line 21: warning: exported method DefaultAuthorizationPolicy.CanInstantiateContract should have comment or be unexported (golint)
    • Line 25: warning: exported method DefaultAuthorizationPolicy.CanModifyContract should have comment or be unexported (golint)
    • Line 29: warning: exported type GovAuthorizationPolicy should have comment or be unexported (golint)
    • Line 32: warning: exported method GovAuthorizationPolicy.CanCreateCode should have comment or be unexported (golint)
    • Line 36: warning: exported method GovAuthorizationPolicy.CanInstantiateContract should have comment or be unexported (golint)
    • Line 40: warning: exported method GovAuthorizationPolicy.CanModifyContract should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/wasmtesting/gas_register.go
    • Line 19: warning: exported method MockGasRegister.NewContractInstanceCosts should have comment or be unexported (golint)
    • Line 26: warning: exported method MockGasRegister.CompileCosts should have comment or be unexported (golint)
    • Line 33: warning: exported method MockGasRegister.InstantiateContractCosts should have comment or be unexported (golint)
    • Line 40: warning: exported method MockGasRegister.ReplyCosts should have comment or be unexported (golint)
    • Line 47: warning: exported method MockGasRegister.EventCosts should have comment or be unexported (golint)
    • Line 54: warning: exported method MockGasRegister.ToWasmVMGas should have comment or be unexported (golint)
    • Line 61: warning: exported method MockGasRegister.FromWasmVMGas should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/wasmtesting/mock_engine.go
    • Line 39: warning: exported method MockWasmer.IBCChannelOpen should have comment or be unexported (golint)
    • Line 46: warning: exported method MockWasmer.IBCChannelConnect should have comment or be unexported (golint)
    • Line 53: warning: exported method MockWasmer.IBCChannelClose should have comment or be unexported (golint)
    • Line 60: warning: exported method MockWasmer.IBCPacketReceive should have comment or be unexported (golint)
    • Line 67: warning: exported method MockWasmer.IBCPacketAck should have comment or be unexported (golint)
    • Line 74: warning: exported method MockWasmer.IBCPacketTimeout should have comment or be unexported (golint)
    • Line 81: warning: exported method MockWasmer.Create should have comment or be unexported (golint)
    • Line 88: warning: exported method MockWasmer.AnalyzeCode should have comment or be unexported (golint)
    • Line 95: warning: exported method MockWasmer.Instantiate should have comment or be unexported (golint)
    • Line 102: warning: exported method MockWasmer.Execute should have comment or be unexported (golint)
    • Line 109: warning: exported method MockWasmer.Query should have comment or be unexported (golint)
    • Line 116: warning: exported method MockWasmer.Migrate should have comment or be unexported (golint)
    • Line 123: warning: exported method MockWasmer.Sudo should have comment or be unexported (golint)
    • Line 131: warning: exported method MockWasmer.Reply should have comment or be unexported (golint)
    • Line 138: warning: exported method MockWasmer.GetCode should have comment or be unexported (golint)
    • Line 145: warning: exported method MockWasmer.Cleanup should have comment or be unexported (golint)
    • Line 152: warning: exported method MockWasmer.Pin should have comment or be unexported (golint)
    • Line 159: warning: exported method MockWasmer.Unpin should have comment or be unexported (golint)
    • Line 166: warning: exported method MockWasmer.GetMetrics should have comment or be unexported (golint)
    • Line 173: warning: exported var AlwaysPanicMockWasmer should have comment or be unexported (golint)
    • Line 324: warning: exported function HashOnlyCreateFn should have comment or be unexported (golint)
    • Line 332: warning: exported function NoOpInstantiateFn should have comment or be unexported (golint)
    • Line 336: warning: exported function NoOpCreateFn should have comment or be unexported (golint)
    • Line 340: warning: exported function HasIBCAnalyzeFn should have comment or be unexported (golint)
    • Line 346: warning: exported function WithoutIBCAnalyzeFn should have comment or be unexported (golint)
    • wasmd/x/wasm/client/rest/gov.go
    • Line 16: warning: exported type StoreCodeProposalJsonReq should have comment or be unexported (golint)
    • Line 31: warning: exported method StoreCodeProposalJsonReq.Content should have comment or be unexported (golint)
    • Line 40: warning: exported method StoreCodeProposalJsonReq.GetProposer should have comment or be unexported (golint)
    • Line 43: warning: exported method StoreCodeProposalJsonReq.GetDeposit should have comment or be unexported (golint)
    • Line 46: warning: exported method StoreCodeProposalJsonReq.GetBaseReq should have comment or be unexported (golint)
    • Line 50: warning: exported function StoreCodeProposalHandler should have comment or be unexported (golint)
    • Line 63: warning: exported type InstantiateProposalJsonReq should have comment or be unexported (golint)
    • Line 81: warning: exported method InstantiateProposalJsonReq.Content should have comment or be unexported (golint)
    • Line 93: warning: exported method InstantiateProposalJsonReq.GetProposer should have comment or be unexported (golint)
    • Line 96: warning: exported method InstantiateProposalJsonReq.GetDeposit should have comment or be unexported (golint)
    • Line 99: warning: exported method InstantiateProposalJsonReq.GetBaseReq should have comment or be unexported (golint)
    • Line 103: warning: exported function InstantiateProposalHandler should have comment or be unexported (golint)
    • Line 116: warning: exported type MigrateProposalJsonReq should have comment or be unexported (golint)
    • Line 132: warning: exported method MigrateProposalJsonReq.Content should have comment or be unexported (golint)
    • Line 142: warning: exported method MigrateProposalJsonReq.GetProposer should have comment or be unexported (golint)
    • Line 145: warning: exported method MigrateProposalJsonReq.GetDeposit should have comment or be unexported (golint)
    • Line 148: warning: exported method MigrateProposalJsonReq.GetBaseReq should have comment or be unexported (golint)
    • Line 151: warning: exported function MigrateProposalHandler should have comment or be unexported (golint)
    • Line 164: warning: exported type UpdateAdminJsonReq should have comment or be unexported (golint)
    • Line 177: warning: exported method UpdateAdminJsonReq.Content should have comment or be unexported (golint)
    • Line 185: warning: exported method UpdateAdminJsonReq.GetProposer should have comment or be unexported (golint)
    • Line 188: warning: exported method UpdateAdminJsonReq.GetDeposit should have comment or be unexported (golint)
    • Line 191: warning: exported method UpdateAdminJsonReq.GetBaseReq should have comment or be unexported (golint)
    • Line 194: warning: exported function UpdateContractAdminProposalHandler should have comment or be unexported (golint)
    • Line 207: warning: exported type ClearAdminJsonReq should have comment or be unexported (golint)
    • Line 219: warning: exported method ClearAdminJsonReq.Content should have comment or be unexported (golint)
    • Line 226: warning: exported method ClearAdminJsonReq.GetProposer should have comment or be unexported (golint)
    • Line 229: warning: exported method ClearAdminJsonReq.GetDeposit should have comment or be unexported (golint)
    • Line 232: warning: exported method ClearAdminJsonReq.GetBaseReq should have comment or be unexported (golint)
    • Line 235: warning: exported function ClearContractAdminProposalHandler should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/legacy_querier.go
    • Line 14: warning: exported const QueryListContractByCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported const QueryMethodContractStateSmart should have comment (or a comment on this block) or be unexported (golint)
    • wasmd/x/wasm/client/cli/gov_tx.go
    • Line 16: warning: exported function ProposalStoreCodeCmd should have comment or be unexported (golint)
    • Line 89: warning: exported function ProposalInstantiateContractCmd should have comment or be unexported (golint)
    • Line 166: warning: exported function ProposalMigrateContractCmd should have comment or be unexported (golint)
    • Line 238: warning: exported function ProposalUpdateContractAdminCmd should have comment or be unexported (golint)
    • Line 299: warning: exported function ProposalClearContractAdminCmd should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/test_common.go
    • Line 69: warning: exported type TestingT should have comment or be unexported (golint)
    • Line 76: warning: exported var ModuleBasics should have comment or be unexported (golint)
    • Line 95: warning: exported function MakeTestCodec should have comment or be unexported (golint)
    • Line 99: warning: exported function MakeEncodingConfig should have comment or be unexported (golint)
    • Line 121: warning: exported var TestingStakeParams should have comment or be unexported (golint)
    • Line 129: warning: exported type TestKeepers should have comment or be unexported (golint)
    • Line 147: warning: comment on exported function CreateTestInput should be of the form "CreateTestInput ..." (golint)
    • Line 420: warning: exported function RandomAccountAddress should have comment or be unexported (golint)
    • Line 425: warning: exported function RandomBech32AccountAddress should have comment or be unexported (golint)
    • Line 429: warning: exported type ExampleContract should have comment or be unexported (golint)
    • Line 436: warning: exported function StoreHackatomExampleContract should have comment or be unexported (golint)
    • Line 440: warning: exported function StoreBurnerExampleContract should have comment or be unexported (golint)
    • Line 444: warning: exported function StoreIBCReflectContract should have comment or be unexported (golint)
    • Line 448: warning: exported function StoreReflectContract should have comment or be unexported (golint)
    • Line 458: warning: exported function StoreExampleContract should have comment or be unexported (golint)
    • Line 473: warning: exported type ExampleContractInstance should have comment or be unexported (golint)
    • Line 504: warning: exported type HackatomExampleInstance should have comment or be unexported (golint)
    • Line 540: warning: exported type HackatomExampleInitMsg should have comment or be unexported (golint)
    • Line 545: warning: exported method HackatomExampleInitMsg.GetBytes should have comment or be unexported (golint)
    • Line 551: warning: exported type IBCReflectExampleInstance should have comment or be unexported (golint)
    • Line 578: warning: exported type IBCReflectInitMsg should have comment or be unexported (golint)
    • Line 582: warning: exported method IBCReflectInitMsg.GetBytes should have comment or be unexported (golint)
    • Line 588: warning: exported type BurnerExampleInitMsg should have comment or be unexported (golint)
    • Line 592: warning: exported method BurnerExampleInitMsg.GetBytes should have comment or be unexported (golint)
    • wasmd/x/wasm/module.go
    • Line 42: warning: exported method AppModuleBasic.RegisterLegacyAminoCodec should have comment or be unexported (golint)
    • Line 46: warning: exported method AppModuleBasic.RegisterGRPCGatewayRoutes should have comment or be unexported (golint)
    • Line 88: warning: comment on exported method AppModuleBasic.RegisterInterfaces should be of the form "RegisterInterfaces ..." (golint)
    • Line 113: warning: exported method AppModule.RegisterServices should have comment or be unexported (golint)
    • Line 118: warning: exported method AppModule.LegacyQuerierHandler should have comment or be unexported (golint)
    • wasmd/x/wasm/types/proposal.go
    • Line 14: warning: exported type ProposalType should have comment or be unexported (golint)
    • Line 17: warning: exported const ProposalTypeStoreCode should have comment (or a comment on this block) or be unexported (golint)
    • wasmd/x/wasm/keeper/handler_plugin.go
    • Line 27: warning: exported function NewDefaultMessageHandler should have comment or be unexported (golint)
    • Line 47: warning: exported function NewSDKMessageHandler should have comment or be unexported (golint)
    • Line 54: warning: exported method SDKMessageHandler.DispatchMsg should have comment or be unexported (golint)
    • Line 104: warning: exported function NewMessageHandlerChain should have comment or be unexported (golint)
    • Line 136: warning: exported function NewIBCRawPacketHandler should have comment or be unexported (golint)
    • Line 186: warning: exported method MessageHandlerFunc.DispatchMsg should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/handler_plugin_encoders.go
    • Line 20: warning: exported type BankEncoder should have comment or be unexported (golint)
    • Line 21: warning: exported type CustomEncoder should have comment or be unexported (golint)
    • Line 22: warning: exported type DistributionEncoder should have comment or be unexported (golint)
    • Line 23: warning: exported type StakingEncoder should have comment or be unexported (golint)
    • Line 24: warning: exported type StargateEncoder should have comment or be unexported (golint)
    • Line 25: warning: exported type WasmEncoder should have comment or be unexported (golint)
    • Line 26: warning: exported type IBCEncoder should have comment or be unexported (golint)
    • Line 28: warning: exported type MessageEncoders should have comment or be unexported (golint)
    • Line 39: warning: exported function DefaultEncoders should have comment or be unexported (golint)
    • Line 52: warning: exported method MessageEncoders.Merge should have comment or be unexported (golint)
    • Line 83: warning: exported method MessageEncoders.Encode should have comment or be unexported (golint)
    • Line 105: warning: exported function EncodeBankMsg should have comment or be unexported (golint)
    • Line 124: warning: exported function NoCustomMsg should have comment or be unexported (golint)
    • Line 128: warning: exported function EncodeDistributionMsg should have comment or be unexported (golint)
    • Line 147: warning: exported function EncodeStakingMsg should have comment or be unexported (golint)
    • Line 189: warning: exported function EncodeStargateMsg should have comment or be unexported (golint)
    • Line 206: warning: exported function EncodeWasmMsg should have comment or be unexported (golint)
    • Line 262: warning: exported function EncodeIBCMsg should have comment or be unexported (golint)
    • Line 292: warning: exported function EncodeGovMsg should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/ibc.go
    • Line 35: warning: exported function PortIDForContract should have comment or be unexported (golint)
    • Line 39: warning: exported function ContractFromPortID should have comment or be unexported (golint)
    • wasmd/x/wasm/keeper/wasmtesting/mock_keepers.go
    • Line 11: warning: exported type MockChannelKeeper should have comment or be unexported (golint)
    • Line 20: warning: exported method MockChannelKeeper.GetChannel should have comment or be unexported (golint)
    • Line 27: warning: exported method MockChannelKeeper.GetAllChannels should have comment or be unexported (golint)
    • Line 34: warning: exported method MockChannelKeeper.GetNextSequenceSend should have comment or be unexported (golint)
    • Line 41: warning: exported method MockChannelKeeper.SendPacket should have comment or be unexported (golint)
    • Line 48: warning: exported method MockChannelKeeper.ChanCloseInit should have comment or be unexported (golint)
    • Line 55: warning: exported method MockChannelKeeper.IterateChannels should have comment or be unexported (golint)
    • Line 62: warning: exported function MockChannelKeeperIterator should have comment or be unexported (golint)
    • Line 73: warning: exported type MockCapabilityKeeper should have comment or be unexported (golint)
    • Line 79: warning: exported method MockCapabilityKeeper.GetCapability should have comment or be unexported (golint)
    • Line 86: warning: exported method MockCapabilityKeeper.ClaimCapability should have comment or be unexported (golint)
    • Line 93: warning: exported method MockCapabilityKeeper.AuthenticateCapability should have comment or be unexported (golint)
    • Line 102: warning: exported type MockIBCTransferKeeper should have comment or be unexported (golint)
    • Line 106: warning: exported method MockIBCTransferKeeper.GetPort should have comment or be unexported (golint)
    • wasmd/x/wasm/types/test_fixtures.go
    • Line 12: warning: exported function GenesisFixture should have comment or be unexported (golint)
    • Line 55: warning: exported function CodeFixture should have comment or be unexported (golint)
    • Line 70: warning: exported function CodeInfoFixture should have comment or be unexported (golint)
    • Line 85: warning: exported function ContractFixture should have comment or be unexported (golint)
    • Line 100: warning: exported function OnlyGenesisFields should have comment or be unexported (golint)
    • Line 104: warning: exported function ContractInfoFixture should have comment or be unexported (golint)
    • Line 120: warning: exported function WithSHA256CodeHash should have comment or be unexported (golint)
    • Line 127: warning: exported function MsgStoreCodeFixture should have comment or be unexported (golint)
    • Line 141: warning: exported function MsgInstantiateContractFixture should have comment or be unexported (golint)
    • Line 160: warning: exported function MsgExecuteContractFixture should have comment or be unexported (golint)
    • Line 180: warning: exported function StoreCodeProposalFixture should have comment or be unexported (golint)
    • Line 194: warning: exported function InstantiateContractProposalFixture should have comment or be unexported (golint)
    • Line 229: warning: exported function MigrateContractProposalFixture should have comment or be unexported (golint)
    • Line 261: warning: exported function UpdateAdminProposalFixture should have comment or be unexported (golint)
    • Line 279: warning: exported function ClearAdminProposalFixture should have comment or be unexported (golint)
    • wasmd/app/test_access.go
    • Line 15: warning: exported type TestSupport should have comment or be unexported (golint)
    • Line 20: warning: exported function NewTestSupport should have comment or be unexported (golint)
    • Line 24: warning: exported method TestSupport.IBCKeeper should have comment or be unexported (golint)
    • Line 28: warning: exported method TestSupport.WasmKeeper should have comment or be unexported (golint)
    • Line 32: warning: exported method TestSupport.AppCodec should have comment or be unexported (golint)
    • Line 35: warning: exported method TestSupport.ScopedWasmIBCKeeper should have comment or be unexported (golint)
    • Line 39: warning: exported method TestSupport.ScopeIBCKeeper should have comment or be unexported (golint)
    • Line 43: warning: exported method TestSupport.ScopedTransferKeeper should have comment or be unexported (golint)
    • Line 47: warning: exported method TestSupport.StakingKeeper should have comment or be unexported (golint)
    • Line 51: warning: exported method TestSupport.BankKeeper should have comment or be unexported (golint)
    • Line 55: warning: exported method TestSupport.TransferKeeper should have comment or be unexported (golint)
    • wasmd/app/genesis.go
    • Line 7: warning: comment on exported type GenesisState should be of the form "GenesisState ..." (with optional leading article) (golint)
    • wasmd/x/wasm/keeper/contract_keeper.go
    • Line 22: warning: exported type PermissionedKeeper should have comment or be unexported (golint)
    • Line 27: warning: exported function NewPermissionedKeeper should have comment or be unexported (golint)
    • Line 31: warning: exported function NewGovPermissionKeeper should have comment or be unexported (golint)
    • Line 35: warning: exported function NewDefaultPermissionKeeper should have comment or be unexported (golint)
    • Line 39: warning: exported method PermissionedKeeper.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method PermissionedKeeper.Instantiate should have comment or be unexported (golint)
    • Line 47: warning: exported method PermissionedKeeper.Execute should have comment or be unexported (golint)
    • Line 51: warning: exported method PermissionedKeeper.Migrate should have comment or be unexported (golint)
    • Line 55: warning: exported method PermissionedKeeper.UpdateContractAdmin should have comment or be unexported (golint)
    • Line 59: warning: exported method PermissionedKeeper.ClearContractAdmin should have comment or be unexported (golint)
    • Line 63: warning: exported method PermissionedKeeper.PinCode should have comment or be unexported (golint)
    • Line 67: warning: exported method PermissionedKeeper.UnpinCode should have comment or be unexported (golint)
    • Line 71: warning: comment on exported method PermissionedKeeper.SetContractInfoExtension should be of the form "SetContractInfoExtension ..." (golint)

gocyclo98%

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.

    • wasmd/app/export.go
    • Line 50: warning: cyclomatic complexity 17 of function (*WasmApp).prepForZeroHeightGenesis() is high (> 15) (gocyclo)

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!


misspell95%

Misspell Finds commonly misspelled English words