Preparing report...

Report for github.com/tendermint/spn

A+    Excellent!    Found 49 issues across 145 files

Tweet

gofmt99%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo100%

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.

No problems detected. Good job!


golint66%

Golint is a linter for Go source code.

    • spn/x/launch/types/codec.go
    • Line 10: warning: exported function RegisterCodec should have comment or be unexported (golint)
    • Line 26: warning: exported function RegisterInterfaces should have comment or be unexported (golint)
    • Line 59: warning: exported var ModuleCdc should have comment or be unexported (golint)
    • spn/x/profile/keeper/keeper.go
    • Line 15: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 24: warning: exported function NewKeeper should have comment or be unexported (golint)
    • Line 40: warning: exported method Keeper.Logger should have comment or be unexported (golint)
    • spn/x/profile/types/message_create_coordinator.go
    • Line 10: warning: exported function NewMsgCreateCoordinator should have comment or be unexported (golint)
    • Line 21: warning: exported method MsgCreateCoordinator.Route should have comment or be unexported (golint)
    • Line 25: warning: exported method MsgCreateCoordinator.Type should have comment or be unexported (golint)
    • Line 29: warning: exported method MsgCreateCoordinator.GetSigners should have comment or be unexported (golint)
    • Line 37: warning: exported method MsgCreateCoordinator.GetSignBytes should have comment or be unexported (golint)
    • Line 42: warning: exported method MsgCreateCoordinator.ValidateBasic should have comment or be unexported (golint)
    • spn/x/launch/types/message_create_chain.go
    • Line 10: warning: exported function NewMsgCreateChain should have comment or be unexported (golint)
    • Line 21: warning: exported method MsgCreateChain.Route should have comment or be unexported (golint)
    • Line 25: warning: exported method MsgCreateChain.Type should have comment or be unexported (golint)
    • Line 29: warning: exported method MsgCreateChain.GetSigners should have comment or be unexported (golint)
    • Line 37: warning: exported method MsgCreateChain.GetSignBytes should have comment or be unexported (golint)
    • Line 42: warning: exported method MsgCreateChain.ValidateBasic should have comment or be unexported (golint)
    • spn/x/profile/types/message_update_coordinator_description.go
    • Line 10: warning: exported function NewMsgUpdateCoordinatorDescription should have comment or be unexported (golint)
    • Line 21: warning: exported method MsgUpdateCoordinatorDescription.Route should have comment or be unexported (golint)
    • Line 25: warning: exported method MsgUpdateCoordinatorDescription.Type should have comment or be unexported (golint)
    • Line 29: warning: exported method MsgUpdateCoordinatorDescription.GetSigners should have comment or be unexported (golint)
    • Line 37: warning: exported method MsgUpdateCoordinatorDescription.GetSignBytes should have comment or be unexported (golint)
    • Line 42: warning: exported method MsgUpdateCoordinatorDescription.ValidateBasic should have comment or be unexported (golint)
    • spn/x/launch/keeper/keeper.go
    • Line 15: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 25: warning: exported function NewKeeper should have comment or be unexported (golint)
    • Line 42: warning: exported method Keeper.Logger should have comment or be unexported (golint)
    • spn/x/profile/types/codec.go
    • Line 12: warning: exported function RegisterCodec should have comment or be unexported (golint)
    • Line 21: warning: exported function RegisterInterfaces should have comment or be unexported (golint)
    • Line 35: warning: exported var ModuleCdc should have comment or be unexported (golint)
    • spn/app/app.go
    • Line 101: warning: exported const AccountAddressPrefix should have comment (or a comment on this block) or be unexported (golint)
    • spn/x/profile/module.go
    • Line 42: warning: exported function NewAppModuleBasic should have comment or be unexported (golint)
    • Line 51: warning: exported method AppModuleBasic.RegisterCodec should have comment or be unexported (golint)
    • Line 55: warning: exported method AppModuleBasic.RegisterLegacyAminoCodec should have comment or be unexported (golint)
    • Line 108: warning: exported function NewAppModule should have comment or be unexported (golint)
    • spn/testutil/sample/launch.go
    • Line 63: warning: exported function GenesisValidator should have comment or be unexported (golint)
    • Line 74: warning: exported function Request should have comment or be unexported (golint)
    • spn/pkg/errors/critical.go
    • Line 9: warning: exported var ErrCritical should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function Critical should be of the form "Critical ..." (golint)
    • spn/x/launch/module.go
    • Line 40: warning: exported function NewAppModuleBasic should have comment or be unexported (golint)
    • Line 49: warning: exported method AppModuleBasic.RegisterCodec should have comment or be unexported (golint)
    • Line 53: warning: exported method AppModuleBasic.RegisterLegacyAminoCodec should have comment or be unexported (golint)
    • Line 106: warning: exported function NewAppModule should have comment or be unexported (golint)
    • spn/x/profile/types/message_update_validator_description.go
    • Line 10: warning: exported function NewMsgUpdateValidatorDescription should have comment or be unexported (golint)
    • Line 30: warning: exported method MsgUpdateValidatorDescription.Route should have comment or be unexported (golint)
    • Line 34: warning: exported method MsgUpdateValidatorDescription.Type should have comment or be unexported (golint)
    • Line 38: warning: exported method MsgUpdateValidatorDescription.GetSigners should have comment or be unexported (golint)
    • Line 46: warning: exported method MsgUpdateValidatorDescription.GetSignBytes should have comment or be unexported (golint)
    • Line 51: warning: exported method MsgUpdateValidatorDescription.ValidateBasic should have comment or be unexported (golint)
    • spn/x/profile/types/keys.go
    • Line 24: warning: exported function KeyPrefix should have comment or be unexported (golint)
    • Line 29: warning: exported const CoordinatorKey should have comment (or a comment on this block) or be unexported (golint)
    • spn/x/profile/types/genesis.go
    • Line 36: warning: exported method GenesisState.ValidateValidators should have comment or be unexported (golint)
    • Line 49: warning: exported method GenesisState.ValidateCoordinators should have comment or be unexported (golint)
    • spn/x/profile/types/message_delete_coordinator.go
    • Line 10: warning: exported function NewMsgDeleteCoordinator should have comment or be unexported (golint)
    • Line 16: warning: exported method MsgDeleteCoordinator.Route should have comment or be unexported (golint)
    • Line 20: warning: exported method MsgDeleteCoordinator.Type should have comment or be unexported (golint)
    • Line 24: warning: exported method MsgDeleteCoordinator.GetSigners should have comment or be unexported (golint)
    • Line 32: warning: exported method MsgDeleteCoordinator.GetSignBytes should have comment or be unexported (golint)
    • Line 37: warning: exported method MsgDeleteCoordinator.ValidateBasic should have comment or be unexported (golint)
    • spn/x/profile/types/message_update_coordinator_address.go
    • Line 10: warning: exported function NewMsgUpdateCoordinatorAddress should have comment or be unexported (golint)
    • Line 17: warning: exported method MsgUpdateCoordinatorAddress.Route should have comment or be unexported (golint)
    • Line 21: warning: exported method MsgUpdateCoordinatorAddress.Type should have comment or be unexported (golint)
    • Line 25: warning: exported method MsgUpdateCoordinatorAddress.GetSigners should have comment or be unexported (golint)
    • Line 33: warning: exported method MsgUpdateCoordinatorAddress.GetSignBytes should have comment or be unexported (golint)
    • Line 38: warning: exported method MsgUpdateCoordinatorAddress.ValidateBasic should have comment or be unexported (golint)
    • spn/x/launch/types/message_edit_chain.go
    • Line 11: warning: exported function NewMsgEditChain should have comment or be unexported (golint)
    • Line 21: warning: exported method MsgEditChain.Route should have comment or be unexported (golint)
    • Line 25: warning: exported method MsgEditChain.Type should have comment or be unexported (golint)
    • Line 29: warning: exported method MsgEditChain.GetSigners should have comment or be unexported (golint)
    • Line 37: warning: exported method MsgEditChain.GetSignBytes should have comment or be unexported (golint)
    • Line 42: warning: exported method MsgEditChain.ValidateBasic should have comment or be unexported (golint)
    • spn/app/genesis.go
    • Line 9: warning: comment on exported type GenesisState should be of the form "GenesisState ..." (with optional leading article) (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!