Preparing report...

Report for github.com/terra-project/core

A+    Excellent!    Found 78 issues across 356 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!


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.


golint81%

Golint is a linter for Go source code.

    • core/x/msgauth/internal/types/msgs.go
    • Line 29: warning: exported method MsgGrantAuthorization.Route should have comment or be unexported (golint)
    • Line 30: warning: exported method MsgGrantAuthorization.Type should have comment or be unexported (golint)
    • Line 32: warning: exported method MsgGrantAuthorization.GetSigners should have comment or be unexported (golint)
    • Line 36: warning: exported method MsgGrantAuthorization.GetSignBytes should have comment or be unexported (golint)
    • Line 41: warning: exported method MsgGrantAuthorization.ValidateBasic should have comment or be unexported (golint)
    • Line 69: warning: exported function NewMsgRevokeAuthorization should have comment or be unexported (golint)
    • Line 77: warning: exported method MsgRevokeAuthorization.Route should have comment or be unexported (golint)
    • Line 78: warning: exported method MsgRevokeAuthorization.Type should have comment or be unexported (golint)
    • Line 80: warning: exported method MsgRevokeAuthorization.GetSigners should have comment or be unexported (golint)
    • Line 84: warning: exported method MsgRevokeAuthorization.GetSignBytes should have comment or be unexported (golint)
    • Line 89: warning: exported method MsgRevokeAuthorization.ValidateBasic should have comment or be unexported (golint)
    • Line 107: warning: exported function NewMsgExecAuthorized should have comment or be unexported (golint)
    • Line 114: warning: exported method MsgExecAuthorized.Route should have comment or be unexported (golint)
    • Line 115: warning: exported method MsgExecAuthorized.Type should have comment or be unexported (golint)
    • Line 117: warning: exported method MsgExecAuthorized.GetSigners should have comment or be unexported (golint)
    • Line 121: warning: exported method MsgExecAuthorized.GetSignBytes should have comment or be unexported (golint)
    • Line 125: warning: exported method MsgExecAuthorized.ValidateBasic should have comment or be unexported (golint)
    • core/x/oracle/internal/keeper/test_utils.go
    • Line 1: warning: package comment should be of the form "Package keeper ..." (golint)
    • Line 31: warning: exported var PubKeys should have comment or be unexported (golint)
    • Line 192: warning: exported function NewTestMsgCreateValidator should have comment or be unexported (golint)
    • core/x/mint/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package mint ..." (golint)
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported var NewGenesisState should be of the form "NewGenesisState ..." (golint)
    • Line 19: warning: exported var DefaultGenesisState should have comment or be unexported (golint)
    • Line 27: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 32: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 33: warning: exported type Params should have comment or be unexported (golint)
    • Line 34: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 35: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 36: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/wasm/exported/alias.go
    • Line 1: warning: package comment should be of the form "Package exported ..." (golint)
    • Line 7: warning: exported var EncodeSdkCoin should have comment or be unexported (golint)
    • Line 16: warning: exported type WasmMsgParserInterface should have comment or be unexported (golint)
    • Line 17: warning: exported type WasmQuerierInterface should have comment or be unexported (golint)
    • Line 18: warning: exported type MsgInstantiateContract should have comment or be unexported (golint)
    • Line 19: warning: exported type MsgExecuteContract should have comment or be unexported (golint)
    • Line 20: warning: exported type MsgStoreCode should have comment or be unexported (golint)
    • core/x/treasury/alias.go
    • Line 1: warning: package comment should be of the form "Package treasury ..." (golint)
    • Line 14: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 32: warning: exported var NewGenesisState should have comment or be unexported (golint)
    • Line 48: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • Line 78: warning: exported type PolicyConstraints should have comment or be unexported (golint)
    • Line 79: warning: exported type SupplyKeeper should have comment or be unexported (golint)
    • Line 80: warning: exported type MarketKeeper should have comment or be unexported (golint)
    • Line 81: warning: exported type StakingKeeper should have comment or be unexported (golint)
    • Line 82: warning: exported type DistributionKeeper should have comment or be unexported (golint)
    • Line 83: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 84: warning: exported type Params should have comment or be unexported (golint)
    • Line 85: warning: exported type TaxRateUpdateProposal should have comment or be unexported (golint)
    • Line 86: warning: exported type RewardWeightUpdateProposal should have comment or be unexported (golint)
    • Line 87: warning: exported type QueryTaxCapParams should have comment or be unexported (golint)
    • Line 88: warning: exported type Keeper should have comment or be unexported (golint)
    • core/x/wasm/simulation/operations.go
    • Line 28: warning: exported const OpWeightMsgStoreCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 109: warning: comment on exported function SimulateMsgStoreCode should be of the form "SimulateMsgStoreCode ..." (golint)
    • Line 164: warning: comment on exported function SimulateMsgInstantiateContract should be of the form "SimulateMsgInstantiateContract ..." (golint)
    • Line 219: warning: comment on exported function SimulateMsgExecuteContract should be of the form "SimulateMsgExecuteContract ..." (golint)
    • Line 270: warning: comment on exported function SimulateMsgMigrateContract should be of the form "SimulateMsgMigrateContract ..." (golint)
    • Line 322: warning: comment on exported function SimulateMsgUpdateContractOwner should be of the form "SimulateMsgUpdateContractOwner ..." (golint)
    • core/x/distribution/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package distribution ..." (golint)
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported var RegisterInvariants should be of the form "RegisterInvariants ..." (golint)
    • Line 30: warning: exported var AllInvariants should have comment or be unexported (golint)
    • Line 92: warning: comment on exported var FeePoolKey should be of the form "FeePoolKey ..." (golint)
    • Line 114: warning: exported type Hooks should have comment or be unexported (golint)
    • Line 115: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 116: warning: exported type DelegatorStartingInfo should have comment or be unexported (golint)
    • Line 117: warning: exported type FeePool should have comment or be unexported (golint)
    • Line 118: warning: exported type DelegatorWithdrawInfo should have comment or be unexported (golint)
    • Line 119: warning: exported type ValidatorOutstandingRewardsRecord should have comment or be unexported (golint)
    • Line 120: warning: exported type ValidatorAccumulatedCommissionRecord should have comment or be unexported (golint)
    • Line 121: warning: exported type ValidatorHistoricalRewardsRecord should have comment or be unexported (golint)
    • Line 122: warning: exported type ValidatorCurrentRewardsRecord should have comment or be unexported (golint)
    • Line 123: warning: exported type DelegatorStartingInfoRecord should have comment or be unexported (golint)
    • Line 124: warning: exported type ValidatorSlashEventRecord should have comment or be unexported (golint)
    • Line 125: warning: exported type Params should have comment or be unexported (golint)
    • Line 126: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 127: warning: exported type MsgSetWithdrawAddress should have comment or be unexported (golint)
    • Line 128: warning: exported type MsgWithdrawDelegatorReward should have comment or be unexported (golint)
    • Line 129: warning: exported type MsgWithdrawValidatorCommission should have comment or be unexported (golint)
    • Line 130: warning: exported type CommunityPoolSpendProposal should have comment or be unexported (golint)
    • Line 131: warning: exported type QueryValidatorOutstandingRewardsParams should have comment or be unexported (golint)
    • Line 132: warning: exported type QueryValidatorCommissionParams should have comment or be unexported (golint)
    • Line 133: warning: exported type QueryValidatorSlashesParams should have comment or be unexported (golint)
    • Line 134: warning: exported type QueryDelegationRewardsParams should have comment or be unexported (golint)
    • Line 135: warning: exported type QueryDelegatorParams should have comment or be unexported (golint)
    • Line 136: warning: exported type QueryDelegatorWithdrawAddrParams should have comment or be unexported (golint)
    • Line 137: warning: exported type QueryDelegatorTotalRewardsResponse should have comment or be unexported (golint)
    • Line 138: warning: exported type DelegationDelegatorReward should have comment or be unexported (golint)
    • Line 139: warning: exported type ValidatorHistoricalRewards should have comment or be unexported (golint)
    • Line 140: warning: exported type ValidatorCurrentRewards should have comment or be unexported (golint)
    • Line 141: warning: exported type ValidatorAccumulatedCommission should have comment or be unexported (golint)
    • Line 142: warning: exported type ValidatorSlashEvent should have comment or be unexported (golint)
    • Line 143: warning: exported type ValidatorSlashEvents should have comment or be unexported (golint)
    • Line 144: warning: exported type ValidatorOutstandingRewards should have comment or be unexported (golint)
    • Line 145: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 146: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/msgauth/exported/alias.go
    • Line 1: warning: package comment should be of the form "Package exported ..." (golint)
    • Line 12: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 28: warning: exported var RegisterMsgAuthTypeCodec should have comment or be unexported (golint)
    • Line 31: warning: exported type MsgGrantAuthorization should have comment or be unexported (golint)
    • Line 32: warning: exported type MsgRevokeAuthorization should have comment or be unexported (golint)
    • Line 33: warning: exported type MsgExecAuthorized should have comment or be unexported (golint)
    • core/x/oracle/alias.go
    • Line 1: warning: package comment should be of the form "Package oracle ..." (golint)
    • Line 14: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: comment on exported var NewVoteForTally should be of the form "NewVoteForTally ..." (golint)
    • Line 40: warning: exported var NewClaim should have comment or be unexported (golint)
    • Line 81: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • Line 122: warning: exported type VoteForTally should have comment or be unexported (golint)
    • Line 123: warning: exported type ExchangeRateBallot should have comment or be unexported (golint)
    • Line 124: warning: exported type Claim should have comment or be unexported (golint)
    • Line 125: warning: exported type Denom should have comment or be unexported (golint)
    • Line 126: warning: exported type DenomList should have comment or be unexported (golint)
    • Line 127: warning: exported type StakingKeeper should have comment or be unexported (golint)
    • Line 128: warning: exported type DistributionKeeper should have comment or be unexported (golint)
    • Line 129: warning: exported type SupplyKeeper should have comment or be unexported (golint)
    • Line 130: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 131: warning: exported type VoteHash should have comment or be unexported (golint)
    • Line 132: warning: exported type AggregateVoteHash should have comment or be unexported (golint)
    • Line 133: warning: exported type MsgExchangeRatePrevote should have comment or be unexported (golint)
    • Line 134: warning: exported type MsgExchangeRateVote should have comment or be unexported (golint)
    • Line 135: warning: exported type MsgDelegateFeedConsent should have comment or be unexported (golint)
    • Line 136: warning: exported type MsgAggregateExchangeRatePrevote should have comment or be unexported (golint)
    • Line 137: warning: exported type MsgAggregateExchangeRateVote should have comment or be unexported (golint)
    • Line 138: warning: exported type Params should have comment or be unexported (golint)
    • Line 139: warning: exported type QueryExchangeRateParams should have comment or be unexported (golint)
    • Line 140: warning: exported type QueryPrevotesParams should have comment or be unexported (golint)
    • Line 141: warning: exported type QueryVotesParams should have comment or be unexported (golint)
    • Line 142: warning: exported type QueryFeederDelegationParams should have comment or be unexported (golint)
    • Line 143: warning: exported type QueryMissCounterParams should have comment or be unexported (golint)
    • Line 144: warning: exported type QueryAggregatePrevoteParams should have comment or be unexported (golint)
    • Line 145: warning: exported type QueryAggregateVoteParams should have comment or be unexported (golint)
    • Line 146: warning: exported type QueryTobinTaxParams should have comment or be unexported (golint)
    • Line 147: warning: exported type ExchangeRatePrevote should have comment or be unexported (golint)
    • Line 148: warning: exported type ExchangeRatePrevotes should have comment or be unexported (golint)
    • Line 149: warning: exported type ExchangeRateVote should have comment or be unexported (golint)
    • Line 150: warning: exported type ExchangeRateVotes should have comment or be unexported (golint)
    • Line 151: warning: exported type AggregateExchangeRatePrevote should have comment or be unexported (golint)
    • Line 152: warning: exported type ExchangeRateTuple should have comment or be unexported (golint)
    • Line 153: warning: exported type ExchangeRateTuples should have comment or be unexported (golint)
    • Line 154: warning: exported type AggregateExchangeRateVote should have comment or be unexported (golint)
    • Line 155: warning: exported type Keeper should have comment or be unexported (golint)
    • core/x/bank/alias.go
    • Line 1: warning: package comment should be of the form "Package bank ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 15: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • Line 17: warning: exported var BurnModuleName should have comment or be unexported (golint)
    • core/x/supply/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package supply ..." (golint)
    • Line 10: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported var RegisterInvariants should be of the form "RegisterInvariants ..." (golint)
    • Line 22: warning: exported var AllInvariants should have comment or be unexported (golint)
    • Line 36: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 41: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 42: warning: exported type ModuleAccount should have comment or be unexported (golint)
    • Line 43: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 44: warning: exported type Supply should have comment or be unexported (golint)
    • Line 45: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 46: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • Line 47: warning: exported type ModuleAccountI should have comment or be unexported (golint)
    • core/x/upgrade/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package upgrade ..." (golint)
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported var PlanKey should be of the form "PlanKey ..." (golint)
    • Line 24: warning: exported var NewSoftwareUpgradeProposal should have comment or be unexported (golint)
    • Line 35: warning: exported type UpgradeHandler should have comment or be unexported (golint)
    • Line 36: warning: exported type Plan should have comment or be unexported (golint)
    • Line 37: warning: exported type SoftwareUpgradeProposal should have comment or be unexported (golint)
    • Line 38: warning: exported type CancelSoftwareUpgradeProposal should have comment or be unexported (golint)
    • Line 39: warning: exported type QueryAppliedParams should have comment or be unexported (golint)
    • Line 40: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 42: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • Line 43: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • core/x/msgauth/alias.go
    • Line 1: warning: package comment should be of the form "Package msgauth ..." (golint)
    • Line 14: warning: exported const EventGrantAuthorization should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported var NewKeeper should be of the form "NewKeeper ..." (golint)
    • Line 32: warning: exported var NewQuerier should have comment or be unexported (golint)
    • Line 50: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • Line 58: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 59: warning: exported type Authorization should have comment or be unexported (golint)
    • Line 60: warning: exported type AuthorizationGrant should have comment or be unexported (golint)
    • Line 61: warning: exported type GGMPair should have comment or be unexported (golint)
    • Line 62: warning: exported type GenericAuthorization should have comment or be unexported (golint)
    • Line 63: warning: exported type AuthorizationEntry should have comment or be unexported (golint)
    • Line 64: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 65: warning: exported type MsgGrantAuthorization should have comment or be unexported (golint)
    • Line 66: warning: exported type MsgRevokeAuthorization should have comment or be unexported (golint)
    • Line 67: warning: exported type MsgExecAuthorized should have comment or be unexported (golint)
    • Line 68: warning: exported type QueryGrantParams should have comment or be unexported (golint)
    • Line 69: warning: exported type QueryGrantsParams should have comment or be unexported (golint)
    • Line 70: warning: exported type SendAuthorization should have comment or be unexported (golint)
    • core/x/distribution/alias.go
    • Line 1: warning: package comment should be of the form "Package distribution ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 15: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/msgauth/module.go
    • Line 38: warning: exported type AppModuleBasic should have comment or be unexported (golint)
    • Line 89: warning: exported method AppModule.NewHandler should have comment or be unexported (golint)
    • Line 96: warning: comment on exported method AppModule.NewQuerierHandler should be of the form "NewQuerierHandler ..." (golint)
    • Line 132: warning: exported method AppModule.BeginBlock should have comment or be unexported (golint)
    • core/x/slashing/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package slashing ..." (golint)
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported var NewGenesisState should be of the form "NewGenesisState ..." (golint)
    • Line 24: warning: exported var DefaultGenesisState should have comment or be unexported (golint)
    • Line 41: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 57: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 58: warning: exported type MissedBlock should have comment or be unexported (golint)
    • Line 59: warning: exported type MsgUnjail should have comment or be unexported (golint)
    • Line 60: warning: exported type Params should have comment or be unexported (golint)
    • Line 61: warning: exported type QuerySigningInfoParams should have comment or be unexported (golint)
    • Line 62: warning: exported type QuerySigningInfosParams should have comment or be unexported (golint)
    • Line 63: warning: exported type ValidatorSigningInfo should have comment or be unexported (golint)
    • Line 64: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 65: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 66: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/types/alias.go
    • Line 14: warning: exported const MicroLunaDenom should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported var IsPeriodLastBlock should be of the form "IsPeriodLastBlock ..." (golint)
    • Line 43: warning: exported var IsWaitingForSoftfork should have comment or be unexported (golint)
    • Line 48: warning: exported type Base64Bytes should have comment or be unexported (golint)
    • core/x/gov/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package gov ..." (golint)
    • Line 9: warning: exported const MaxDescriptionLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: comment on exported var RegisterInvariants should be of the form "RegisterInvariants ..." (golint)
    • Line 48: warning: exported var AllInvariants should have comment or be unexported (golint)
    • Line 113: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 127: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 128: warning: exported type Content should have comment or be unexported (golint)
    • Line 129: warning: exported type Handler should have comment or be unexported (golint)
    • Line 130: warning: exported type Deposit should have comment or be unexported (golint)
    • Line 131: warning: exported type Deposits should have comment or be unexported (golint)
    • Line 132: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 133: warning: exported type MsgSubmitProposal should have comment or be unexported (golint)
    • Line 134: warning: exported type MsgDeposit should have comment or be unexported (golint)
    • Line 135: warning: exported type MsgVote should have comment or be unexported (golint)
    • Line 136: warning: exported type DepositParams should have comment or be unexported (golint)
    • Line 137: warning: exported type TallyParams should have comment or be unexported (golint)
    • Line 138: warning: exported type VotingParams should have comment or be unexported (golint)
    • Line 139: warning: exported type Params should have comment or be unexported (golint)
    • Line 140: warning: exported type Proposal should have comment or be unexported (golint)
    • Line 141: warning: exported type Proposals should have comment or be unexported (golint)
    • Line 142: warning: exported type ProposalQueue should have comment or be unexported (golint)
    • Line 143: warning: exported type ProposalStatus should have comment or be unexported (golint)
    • Line 144: warning: exported type TextProposal should have comment or be unexported (golint)
    • Line 145: warning: exported type QueryProposalParams should have comment or be unexported (golint)
    • Line 146: warning: exported type QueryDepositParams should have comment or be unexported (golint)
    • Line 147: warning: exported type QueryVoteParams should have comment or be unexported (golint)
    • Line 148: warning: exported type QueryProposalsParams should have comment or be unexported (golint)
    • Line 149: warning: exported type ValidatorGovInfo should have comment or be unexported (golint)
    • Line 150: warning: exported type TallyResult should have comment or be unexported (golint)
    • Line 151: warning: exported type Vote should have comment or be unexported (golint)
    • Line 152: warning: exported type Votes should have comment or be unexported (golint)
    • Line 153: warning: exported type VoteOption should have comment or be unexported (golint)
    • Line 154: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 155: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/wasm/alias.go
    • Line 1: warning: package comment should be of the form "Package wasm ..." (golint)
    • Line 14: warning: exported const DefaultFeatures should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: comment on exported var NewKeeper should be of the form "NewKeeper ..." (golint)
    • Line 47: warning: exported var NewQuerier should have comment or be unexported (golint)
    • Line 80: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • Line 105: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 106: warning: exported type WasmMsgParser should have comment or be unexported (golint)
    • Line 107: warning: exported type WasmQuerier should have comment or be unexported (golint)
    • Line 108: warning: exported type Model should have comment or be unexported (golint)
    • Line 109: warning: exported type CodeInfo should have comment or be unexported (golint)
    • Line 110: warning: exported type ContractInfo should have comment or be unexported (golint)
    • Line 111: warning: exported type AccountKeeper should have comment or be unexported (golint)
    • Line 112: warning: exported type BankKeeper should have comment or be unexported (golint)
    • Line 113: warning: exported type TreasuryKeeper should have comment or be unexported (golint)
    • Line 114: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 115: warning: exported type Code should have comment or be unexported (golint)
    • Line 116: warning: exported type Contract should have comment or be unexported (golint)
    • Line 117: warning: exported type MsgStoreCode should have comment or be unexported (golint)
    • Line 118: warning: exported type MsgInstantiateContract should have comment or be unexported (golint)
    • Line 119: warning: exported type MsgExecuteContract should have comment or be unexported (golint)
    • Line 120: warning: exported type MsgMigrateContract should have comment or be unexported (golint)
    • Line 121: warning: exported type MsgUpdateContractOwner should have comment or be unexported (golint)
    • Line 122: warning: exported type WasmMsgParserInterface should have comment or be unexported (golint)
    • Line 123: warning: exported type WasmCustomMsg should have comment or be unexported (golint)
    • Line 124: warning: exported type MsgParser should have comment or be unexported (golint)
    • Line 125: warning: exported type Params should have comment or be unexported (golint)
    • Line 126: warning: exported type QueryCodeIDParams should have comment or be unexported (golint)
    • Line 127: warning: exported type QueryContractAddressParams should have comment or be unexported (golint)
    • Line 128: warning: exported type QueryRawStoreParams should have comment or be unexported (golint)
    • Line 129: warning: exported type QueryContractParams should have comment or be unexported (golint)
    • Line 130: warning: exported type WasmQuerierInterface should have comment or be unexported (golint)
    • Line 131: warning: exported type Querier should have comment or be unexported (golint)
    • Line 132: warning: exported type WasmCustomQuery should have comment or be unexported (golint)
    • core/x/market/exported/alias.go
    • Line 1: warning: package comment should be of the form "Package exported ..." (golint)
    • Line 7: warning: exported type MsgSwap should have comment or be unexported (golint)
    • Line 8: warning: exported type MsgSwapSend should have comment or be unexported (golint)
    • core/x/evidence/alias.go
    • Line 1: warning: package comment should be of the form "Package evidence ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 14: warning: exported var RegisterEvidenceTypeCodec should have comment or be unexported (golint)
    • Line 16: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/slashing/alias.go
    • Line 1: warning: package comment should be of the form "Package slashing ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 15: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/supply/alias.go
    • Line 1: warning: package comment should be of the form "Package supply ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 15: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/genutil/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package genutil ..." (golint)
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: comment on exported var NewCosmosAppModule should be of the form "NewCosmosAppModule ..." (golint)
    • Line 15: warning: exported var InitGenesis should have comment or be unexported (golint)
    • Line 30: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 31: warning: exported type AppMap should have comment or be unexported (golint)
    • Line 32: warning: exported type MigrationCallback should have comment or be unexported (golint)
    • Line 33: warning: exported type MigrationMap should have comment or be unexported (golint)
    • Line 34: warning: exported type InitConfig should have comment or be unexported (golint)
    • Line 36: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 37: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/msgauth/internal/types/send_authorization.go
    • Line 9: warning: exported type SendAuthorization should have comment or be unexported (golint)
    • Line 21: warning: exported method SendAuthorization.MsgType should have comment or be unexported (golint)
    • Line 25: warning: exported method SendAuthorization.Accept should have comment or be unexported (golint)
    • core/x/market/alias.go
    • Line 1: warning: package comment should be of the form "Package market ..." (golint)
    • Line 14: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 27: warning: exported var ErrNoEffectivePrice should have comment or be unexported (golint)
    • Line 41: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • Line 53: warning: exported type SupplyKeeper should have comment or be unexported (golint)
    • Line 54: warning: exported type OracleKeeper should have comment or be unexported (golint)
    • Line 55: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 56: warning: exported type MsgSwap should have comment or be unexported (golint)
    • Line 57: warning: exported type MsgSwapSend should have comment or be unexported (golint)
    • Line 58: warning: exported type Params should have comment or be unexported (golint)
    • Line 59: warning: exported type QuerySwapParams should have comment or be unexported (golint)
    • Line 60: warning: exported type Keeper should have comment or be unexported (golint)
    • core/x/staking/alias.go
    • Line 1: warning: package comment should be of the form "Package staking ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 15: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/auth/alias.go
    • Line 1: warning: package comment should be of the form "Package auth ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 14: warning: exported var RegisterAccountTypeCodec should have comment or be unexported (golint)
    • Line 16: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/crisis/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package crisis ..." (golint)
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported var ErrNoSender should be of the form "ErrNoSender ..." (golint)
    • Line 16: warning: exported var ErrUnknownInvariant should have comment or be unexported (golint)
    • Line 25: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 31: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 32: warning: exported type MsgVerifyInvariant should have comment or be unexported (golint)
    • Line 33: warning: exported type InvarRoute should have comment or be unexported (golint)
    • Line 34: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 35: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 36: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/genutil/alias.go
    • Line 1: warning: package comment should be of the form "Package genutil ..." (golint)
    • Line 12: warning: exported var ModuleCdc should have comment or be unexported (golint)
    • Line 16: warning: exported type StakingKeeper should have comment or be unexported (golint)
    • Line 17: warning: exported type AccountKeeper should have comment or be unexported (golint)
    • Line 18: warning: exported type GenesisAccountsIterator should have comment or be unexported (golint)
    • core/x/auth/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package auth ..." (golint)
    • Line 9: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: comment on exported var NewAnteHandler should be of the form "NewAnteHandler ..." (golint)
    • Line 25: warning: exported var GetSignerAcc should have comment or be unexported (golint)
    • Line 57: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 69: warning: exported type SignatureVerificationGasConsumer should have comment or be unexported (golint)
    • Line 70: warning: exported type AccountKeeper should have comment or be unexported (golint)
    • Line 71: warning: exported type BaseAccount should have comment or be unexported (golint)
    • Line 72: warning: exported type NodeQuerier should have comment or be unexported (golint)
    • Line 73: warning: exported type AccountRetriever should have comment or be unexported (golint)
    • Line 74: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 75: warning: exported type Params should have comment or be unexported (golint)
    • Line 76: warning: exported type QueryAccountParams should have comment or be unexported (golint)
    • Line 77: warning: exported type StdSignMsg should have comment or be unexported (golint)
    • Line 78: warning: exported type StdTx should have comment or be unexported (golint)
    • Line 79: warning: exported type StdFee should have comment or be unexported (golint)
    • Line 80: warning: exported type StdSignDoc should have comment or be unexported (golint)
    • Line 81: warning: exported type StdSignature should have comment or be unexported (golint)
    • Line 82: warning: exported type TxBuilder should have comment or be unexported (golint)
    • Line 83: warning: exported type GenesisAccountIterator should have comment or be unexported (golint)
    • Line 85: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • Line 86: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • core/x/gov/alias.go
    • Line 1: warning: package comment should be of the form "Package gov ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 14: warning: exported var RegisterProposalTypeCodec should have comment or be unexported (golint)
    • Line 16: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/params/alias.go
    • Line 1: warning: package comment should be of the form "Package params ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 15: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/staking/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package staking ..." (golint)
    • Line 9: warning: exported const DefaultParamspace should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: comment on exported var RegisterInvariants should be of the form "RegisterInvariants ..." (golint)
    • Line 44: warning: exported var AllInvariants should have comment or be unexported (golint)
    • Line 169: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 192: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 193: warning: exported type Commission should have comment or be unexported (golint)
    • Line 194: warning: exported type CommissionRates should have comment or be unexported (golint)
    • Line 195: warning: exported type DVPair should have comment or be unexported (golint)
    • Line 196: warning: exported type DVVTriplet should have comment or be unexported (golint)
    • Line 197: warning: exported type Delegation should have comment or be unexported (golint)
    • Line 198: warning: exported type Delegations should have comment or be unexported (golint)
    • Line 199: warning: exported type UnbondingDelegation should have comment or be unexported (golint)
    • Line 200: warning: exported type UnbondingDelegationEntry should have comment or be unexported (golint)
    • Line 201: warning: exported type UnbondingDelegations should have comment or be unexported (golint)
    • Line 202: warning: exported type Redelegation should have comment or be unexported (golint)
    • Line 203: warning: exported type RedelegationEntry should have comment or be unexported (golint)
    • Line 204: warning: exported type Redelegations should have comment or be unexported (golint)
    • Line 205: warning: exported type DelegationResponse should have comment or be unexported (golint)
    • Line 206: warning: exported type DelegationResponses should have comment or be unexported (golint)
    • Line 207: warning: exported type RedelegationResponse should have comment or be unexported (golint)
    • Line 208: warning: exported type RedelegationEntryResponse should have comment or be unexported (golint)
    • Line 209: warning: exported type RedelegationResponses should have comment or be unexported (golint)
    • Line 210: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 211: warning: exported type LastValidatorPower should have comment or be unexported (golint)
    • Line 212: warning: exported type MultiStakingHooks should have comment or be unexported (golint)
    • Line 213: warning: exported type MsgCreateValidator should have comment or be unexported (golint)
    • Line 214: warning: exported type MsgEditValidator should have comment or be unexported (golint)
    • Line 215: warning: exported type MsgDelegate should have comment or be unexported (golint)
    • Line 216: warning: exported type MsgBeginRedelegate should have comment or be unexported (golint)
    • Line 217: warning: exported type MsgUndelegate should have comment or be unexported (golint)
    • Line 218: warning: exported type Params should have comment or be unexported (golint)
    • Line 219: warning: exported type Pool should have comment or be unexported (golint)
    • Line 220: warning: exported type QueryDelegatorParams should have comment or be unexported (golint)
    • Line 221: warning: exported type QueryValidatorParams should have comment or be unexported (golint)
    • Line 222: warning: exported type QueryBondsParams should have comment or be unexported (golint)
    • Line 223: warning: exported type QueryRedelegationParams should have comment or be unexported (golint)
    • Line 224: warning: exported type QueryValidatorsParams should have comment or be unexported (golint)
    • Line 225: warning: exported type Validator should have comment or be unexported (golint)
    • Line 226: warning: exported type Validators should have comment or be unexported (golint)
    • Line 227: warning: exported type Description should have comment or be unexported (golint)
    • Line 228: warning: exported type DelegationI should have comment or be unexported (golint)
    • Line 229: warning: exported type ValidatorI should have comment or be unexported (golint)
    • Line 230: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 231: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/upgrade/alias.go
    • Line 1: warning: package comment should be of the form "Package upgrade ..." (golint)
    • Line 12: warning: exported var RegisterCodec should have comment or be unexported (golint)
    • core/x/crisis/alias.go
    • Line 1: warning: package comment should be of the form "Package crisis ..." (golint)
    • Line 12: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 15: warning: comment on exported var ModuleCdc should be of the form "ModuleCdc ..." (golint)
    • core/x/oracle/exported/alias.go
    • Line 1: warning: package comment should be of the form "Package exported ..." (golint)
    • Line 7: warning: exported type MsgAggregateExchangeRatePrevote should have comment or be unexported (golint)
    • Line 8: warning: exported type MsgAggregateExchangeRateVote should have comment or be unexported (golint)
    • core/x/msgauth/client/cli/tx.go
    • Line 48: warning: exported function GetCmdGrantAuthorization should have comment or be unexported (golint)
    • Line 105: warning: exported function GetCmdRevokeAuthorization should have comment or be unexported (golint)
    • Line 139: warning: exported function GetCmdSendAs should have comment or be unexported (golint)
    • core/x/bank/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package bank ..." (golint)
    • Line 9: warning: exported const QueryBalance should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported var RegisterInvariants should have comment or be unexported (golint)
    • Line 45: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 46: warning: exported type BaseKeeper should have comment or be unexported (golint)
    • Line 47: warning: exported type SendKeeper should have comment or be unexported (golint)
    • Line 48: warning: exported type BaseSendKeeper should have comment or be unexported (golint)
    • Line 49: warning: exported type ViewKeeper should have comment or be unexported (golint)
    • Line 50: warning: exported type BaseViewKeeper should have comment or be unexported (golint)
    • Line 51: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 52: warning: exported type MsgSend should have comment or be unexported (golint)
    • Line 53: warning: exported type MsgMultiSend should have comment or be unexported (golint)
    • Line 54: warning: exported type Input should have comment or be unexported (golint)
    • Line 55: warning: exported type Output should have comment or be unexported (golint)
    • Line 56: warning: exported type QueryBalanceParams should have comment or be unexported (golint)
    • Line 58: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 59: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/evidence/cosmos_alias.go
    • Line 10: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported var NewKeeper should have comment or be unexported (golint)
    • Line 46: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 48: warning: exported type GenesisState should have comment or be unexported (golint)
    • Line 49: warning: exported type MsgSubmitEvidence should have comment or be unexported (golint)
    • Line 50: warning: exported type Handler should have comment or be unexported (golint)
    • Line 51: warning: exported type Router should have comment or be unexported (golint)
    • Line 52: warning: exported type Equivocation should have comment or be unexported (golint)
    • Line 54: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • Line 55: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • core/x/params/cosmos_alias.go
    • Line 1: warning: package comment should be of the form "Package params ..." (golint)
    • Line 9: warning: exported const StoreKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported var NewParamSetPair should be of the form "NewParamSetPair ..." (golint)
    • Line 19: warning: exported var NewSubspace should have comment or be unexported (golint)
    • Line 33: warning: comment on exported var CosmosModuleCdc should be of the form "CosmosModuleCdc ..." (golint)
    • Line 39: warning: exported type ParamSetPair should have comment or be unexported (golint)
    • Line 40: warning: exported type ParamSetPairs should have comment or be unexported (golint)
    • Line 41: warning: exported type ParamSet should have comment or be unexported (golint)
    • Line 42: warning: exported type Subspace should have comment or be unexported (golint)
    • Line 43: warning: exported type ReadOnlySubspace should have comment or be unexported (golint)
    • Line 44: warning: exported type KeyTable should have comment or be unexported (golint)
    • Line 45: warning: exported type ParameterChangeProposal should have comment or be unexported (golint)
    • Line 46: warning: exported type ParamChange should have comment or be unexported (golint)
    • Line 47: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 48: warning: exported type CosmosAppModuleBasic should have comment or be unexported (golint)
    • Line 49: warning: exported type CosmosAppModule should have comment or be unexported (golint)
    • core/x/oracle/internal/types/test_utils.go
    • Line 1: warning: package comment should be of the form "Package types ..." (golint)
    • Line 103: warning: exported method MockValidator.IsJailed should have comment or be unexported (golint)
    • Line 104: warning: exported method MockValidator.GetMoniker should have comment or be unexported (golint)
    • Line 105: warning: exported method MockValidator.GetStatus should have comment or be unexported (golint)
    • Line 106: warning: exported method MockValidator.IsBonded should have comment or be unexported (golint)
    • Line 107: warning: exported method MockValidator.IsUnbonded should have comment or be unexported (golint)
    • Line 108: warning: exported method MockValidator.IsUnbonding should have comment or be unexported (golint)
    • Line 109: warning: exported method MockValidator.GetOperator should have comment or be unexported (golint)
    • Line 110: warning: exported method MockValidator.GetConsPubKey should have comment or be unexported (golint)
    • Line 111: warning: exported method MockValidator.GetConsAddr should have comment or be unexported (golint)
    • Line 112: warning: exported method MockValidator.GetTokens should have comment or be unexported (golint)
    • Line 113: warning: exported method MockValidator.GetBondedTokens should have comment or be unexported (golint)
    • Line 114: warning: exported method MockValidator.GetConsensusPower should have comment or be unexported (golint)
    • Line 115: warning: exported method MockValidator.GetCommission should have comment or be unexported (golint)
    • Line 116: warning: exported method MockValidator.GetMinSelfDelegation should have comment or be unexported (golint)
    • Line 117: warning: exported method MockValidator.GetDelegatorShares should have comment or be unexported (golint)
    • Line 118: warning: exported method MockValidator.TokensFromShares should have comment or be unexported (golint)
    • Line 119: warning: exported method MockValidator.TokensFromSharesTruncated should have comment or be unexported (golint)
    • Line 120: warning: exported method MockValidator.TokensFromSharesRoundUp should have comment or be unexported (golint)
    • Line 121: warning: exported method MockValidator.SharesFromTokens should have comment or be unexported (golint)
    • Line 122: warning: exported method MockValidator.SharesFromTokensTruncated should have comment or be unexported (golint)
    • Line 125: warning: exported method MockValidator.SetPower should have comment or be unexported (golint)
    • Line 127: warning: exported function NewMockValidator should have comment or be unexported (golint)
    • core/x/auth/vesting/alias.go
    • Line 10: warning: comment on exported var RegisterCodec should be of the form "RegisterCodec ..." (golint)
    • Line 12: warning: exported var NewBaseVestingAccount should have comment or be unexported (golint)
    • Line 16: warning: comment on exported var VestingCdc should be of the form "VestingCdc ..." (golint)
    • Line 21: warning: exported type BaseVestingAccount should have comment or be unexported (golint)
    • Line 22: warning: exported type LazyGradedVestingAccount should have comment or be unexported (golint)
    • Line 24: warning: exported type LazySchedule should have comment or be unexported (golint)
    • Line 25: warning: exported type LazySchedules should have comment or be unexported (golint)
    • Line 26: warning: exported type VestingSchedule should have comment or be unexported (golint)
    • Line 27: warning: exported type VestingSchedules should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • core/x/wasm/internal/keeper/custom_test.go
    • Line 133: warning: ineffectual assignment to err (ineffassign)
    • Line 163: warning: ineffectual assignment to err (ineffassign)
    • Line 275: warning: ineffectual assignment to err (ineffassign)
    • Line 283: warning: ineffectual assignment to err (ineffassign)
    • Line 309: warning: ineffectual assignment to err (ineffassign)
    • Line 319: warning: ineffectual assignment to err (ineffassign)
    • Line 345: warning: ineffectual assignment to err (ineffassign)
    • Line 353: warning: ineffectual assignment to err (ineffassign)
    • Line 388: warning: ineffectual assignment to err (ineffassign)
    • Line 426: warning: ineffectual assignment to err (ineffassign)
    • Line 459: warning: ineffectual assignment to err (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!