Preparing report...

Report for github.com/desmos-labs/desmos

A+    Excellent!    Found 50 issues across 199 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!


gocyclo96%

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.

    • desmos/app/export.go
    • Line 58: warning: cyclomatic complexity 19 of function (*DesmosApp).prepForZeroHeightGenesis() is high (> 15) (gocyclo)

golint77%

Golint is a linter for Go source code.

    • desmos/x/staging/fees/types/keys.go
    • Line 4: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: comment on exported const QuerierRoute should be of the form "QuerierRoute ..." (golint)
    • desmos/x/staging/posts/module.go
    • Line 79: warning: comment on exported method AppModuleBasic.GetTxCmd should be of the form "GetTxCmd ..." (golint)
    • Line 84: warning: comment on exported method AppModuleBasic.GetQueryCmd should be of the form "GetQueryCmd ..." (golint)
    • Line 147: warning: comment on exported method AppModule.LegacyQuerierHandler should be of the form "LegacyQuerierHandler ..." (golint)
    • desmos/x/profiles/types/params.go
    • Line 101: warning: exported function ValidateNicknameParams should have comment or be unexported (golint)
    • Line 141: warning: exported function ValidateDTagParams should have comment or be unexported (golint)
    • Line 164: warning: exported function ValidateBioParams should have comment or be unexported (golint)
    • desmos/x/profiles/types/codec.go
    • Line 12: warning: exported function RegisterLegacyAminoCodec should have comment or be unexported (golint)
    • Line 27: warning: exported function RegisterInterfaces should have comment or be unexported (golint)
    • desmos/x/profiles/types/keys.go
    • Line 6: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var DTagPrefix should have comment or be unexported (golint)
    • desmos/x/staging/posts/keeper/grpc_query.go
    • Line 47: warning: exported method Keeper.Posts should have comment or be unexported (golint)
    • Line 111: warning: exported method Keeper.Post should have comment or be unexported (golint)
    • Line 126: warning: exported method Keeper.PollAnswers should have comment or be unexported (golint)
    • Line 146: warning: exported method Keeper.RegisteredReactions should have comment or be unexported (golint)
    • Line 153: warning: exported method Keeper.Params should have comment or be unexported (golint)
    • desmos/x/staging/posts/client/rest/rest.go
    • Line 15: warning: exported const ParamPostID should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported type AnswerPollPostReq should have comment or be unexported (golint)
    • Line 64: warning: exported type RegisterReactionReq should have comment or be unexported (golint)
    • desmos/app/app.go
    • Line 113: warning: exported const Bech32MainPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 663: warning: exported method DesmosApp.RegisterTendermintService should have comment or be unexported (golint)
    • desmos/x/staging/fees/module.go
    • Line 39: warning: exported method AppModuleBasic.RegisterLegacyAminoCodec should have comment or be unexported (golint)
    • Line 74: warning: comment on exported method AppModuleBasic.GetQueryCmd should be of the form "GetQueryCmd ..." (golint)
    • Line 79: warning: comment on exported method AppModuleBasic.GetTxCmd should be of the form "GetTxCmd ..." (golint)
    • desmos/x/staging/posts/types/polls.go
    • Line 119: warning: comment on exported function AppendIfMissingOrIfUsersEquals should be of the form "AppendIfMissingOrIfUsersEquals ..." (golint)
    • Line 140: warning: exported function MustMarshalUserAnswers should have comment or be unexported (golint)
    • Line 144: warning: exported function MustUnmarshalUserAnswers should have comment or be unexported (golint)
    • desmos/x/staging/reports/module.go
    • Line 77: warning: comment on exported method AppModuleBasic.GetTxCmd should be of the form "GetTxCmd ..." (golint)
    • Line 82: warning: comment on exported method AppModuleBasic.GetQueryCmd should be of the form "GetQueryCmd ..." (golint)
    • desmos/x/staging/posts/types/keys.go
    • Line 12: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: comment on exported const QuerierRoute should be of the form "QuerierRoute ..." (golint)
    • Line 31: warning: comment on exported const PostSortByCreationDate should be of the form "PostSortByCreationDate ..." (golint)
    • Line 43: warning: exported var ModuleAddress should have comment or be unexported (golint)
    • Line 79: warning: comment on exported function PostReactionsStoreKey should be of the form "PostReactionsStoreKey ..." (golint)
    • desmos/x/staging/fees/ante/ante.go
    • Line 40: warning: exported type MinFeeDecorator should have comment or be unexported (golint)
    • Line 44: warning: exported function NewMinFeeDecorator should have comment or be unexported (golint)
    • Line 50: warning: exported method MinFeeDecorator.AnteHandle should have comment or be unexported (golint)
    • desmos/x/staging/reports/simulation/utils.go
    • Line 44: warning: exported type ReportsData should have comment or be unexported (golint)
    • Line 75: warning: exported function RandomReportMessage should have comment or be unexported (golint)
    • Line 79: warning: exported function RandomReportTypes should have comment or be unexported (golint)
    • desmos/app/genesis.go
    • Line 7: warning: comment on exported type GenesisState should be of the form "GenesisState ..." (with optional leading article) (golint)
    • desmos/x/profiles/module.go
    • Line 76: warning: comment on exported method AppModuleBasic.GetTxCmd should be of the form "GetTxCmd ..." (golint)
    • Line 81: warning: comment on exported method AppModuleBasic.GetQueryCmd should be of the form "GetQueryCmd ..." (golint)
    • Line 144: warning: comment on exported method AppModule.LegacyQuerierHandler should be of the form "LegacyQuerierHandler ..." (golint)
    • desmos/x/profiles/types/msgs.go
    • Line 112: warning: exported method MsgRequestDTagTransfer.ValidateBasic should have comment or be unexported (golint)
    • Line 157: warning: exported method MsgCancelDTagTransfer.ValidateBasic should have comment or be unexported (golint)
    • Line 203: warning: exported method MsgAcceptDTagTransfer.ValidateBasic should have comment or be unexported (golint)
    • Line 252: warning: exported method MsgRefuseDTagTransfer.ValidateBasic should have comment or be unexported (golint)
    • Line 283: warning: exported function NewMsgCreateRelationship should have comment or be unexported (golint)
    • Line 335: warning: exported function NewMsgDeleteRelationship should have comment or be unexported (golint)
    • Line 387: warning: exported function NewMsgBlockUser should have comment or be unexported (golint)
    • Line 440: warning: exported function NewMsgUnblockUser should have comment or be unexported (golint)
    • desmos/x/staging/posts/types/params.go
    • Line 11: warning: comment on exported const DefaultParamSpace should be of the form "DefaultParamSpace ..." (golint)
    • Line 88: warning: exported function ValidateMaxPostMessageLengthParam should have comment or be unexported (golint)
    • Line 102: warning: exported function ValidateMaxAdditionalAttributesFieldNumberParam should have comment or be unexported (golint)
    • Line 130: warning: exported function ValidateMaxAdditionalAttributesFieldValueLengthParam should have comment or be unexported (golint)
    • Line 134: warning: exported function ValidateMaxAdditionalAttributesFieldKeyLengthParam should have comment or be unexported (golint)
    • desmos/x/staging/fees/types/params.go
    • Line 10: warning: comment on exported const DefaultParamspace should be of the form "DefaultParamspace ..." (golint)
    • Line 15: warning: exported var DefaultMinFees should have comment or be unexported (golint)
    • Line 42: warning: exported method Params.ParamSetPairs should have comment or be unexported (golint)
    • Line 57: warning: exported function ValidateMinFeesParam 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.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)