Skip to content

feat: add lint ci

feat: add lint ci #1

Triggered via push January 10, 2024 09:19
Status Failure
Total duration 2m 4s
Artifacts

golangci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
lint: x/multi-staking/keeper/abci.go#L47
Error return value of `k.BurnUnbondedCoinAndUnlockedMultiStakingCoin` is not checked (errcheck)
lint: x/multi-staking/types/lock.go#L4
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/types/proposal.go#L6
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/types/expected_keepers.go#L5
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/types/expected_keepers.go#L8
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/types/unlock.go#L6
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/types/unlock.go#L7
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/types/proposal_test.go#L6
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/types/proposal_test.go#L10
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint: x/multi-staking/keeper/unlock.go#L6
File is not `gci`-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(cosmossdk.io) -s prefix(github.com/cosmos/cosmos-sdk) -s prefix(github.com/cometbft/cometbft) -s prefix(github.com/cosmos/ibc-go) --custom-order (gci)
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/multi-staking/multi-staking. Supported file pattern: go.sum
lint: x/multi-staking/types/lock.go#L29
receiver-naming: receiver name multiStakingLock should be consistent with previous receiver name lock for MultiStakingLock (revive)
lint: x/multi-staking/types/lock.go#L35
receiver-naming: receiver name m should be consistent with previous receiver name lock for MultiStakingLock (revive)
lint: x/multi-staking/types/lock.go#L39
receiver-naming: receiver name multiStakingLock should be consistent with previous receiver name lock for MultiStakingLock (revive)
lint: x/multi-staking/types/multi_staking_coin.go#L49
receiver-naming: receiver name coinA should be consistent with previous receiver name coin for MultiStakingCoin (revive)
lint: x/multi-staking/types/unlock.go#L76
receiver-naming: receiver name u should be consistent with previous receiver name e for UnlockEntry (revive)
lint: x/multi-staking/types/multi_staking_coin.go#L72
receiver-naming: receiver name coinA should be consistent with previous receiver name coin for MultiStakingCoin (revive)
lint: x/multi-staking/types/lock.go#L43
receiver-naming: receiver name fromLock should be consistent with previous receiver name lock for MultiStakingLock (revive)
lint: x/multi-staking/types/unlock.go#L80
receiver-naming: receiver name unlockEntry should be consistent with previous receiver name e for UnlockEntry (revive)
lint: x/multi-staking/types/unlock.go#L84
receiver-naming: receiver name unlockEntry should be consistent with previous receiver name e for UnlockEntry (revive)
lint: x/multi-staking/types/key.go#L91
unexported-naming: the symbol DVPair is local, its name should start with a lowercase letter (revive)