Skip to content

Commit

Permalink
refactor: remove unused nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
fx0x55 authored and github-actions[bot] committed Mar 18, 2024
1 parent bbad8aa commit 85a9339
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ lint: lint-install
echo "--> Running linter"
$(MAKE) lint-install
@golangci-lint run --build-tags=$(GO_BUILD) --out-format=tab
@if [ $$(find . -name '*.go' -type f | xargs grep 'nolint\|#nosec' | wc -l) -ne 39 ]; then \
@if [ $$(find . -name '*.go' -type f | xargs grep 'nolint\|#nosec' | wc -l) -ne 35 ]; then \
echo "--> increase or decrease nolint, please recheck them"; \
echo "--> list nolint: \`find . -name '*.go' -type f | xargs grep 'nolint\|#nosec'\`"; exit 1;\
fi
Expand Down
2 changes: 1 addition & 1 deletion ante/fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (empd EthMinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul
if fee.LT(requiredFee) {
return ctx, errorsmod.Wrapf(
errortypes.ErrInsufficientFee,
"provided fee < minimum global fee (%d < %d). Please increase the priority tip (for EIP-1559 txs) or the gas prices (for access list or legacy txs)", //nolint:lll
"provided fee < minimum global fee (%d < %d). Please increase the priority tip (for EIP-1559 txs) or the gas prices (for access list or legacy txs)",
fee.TruncateInt().Int64(), requiredFee.TruncateInt().Int64(),
)
}
Expand Down
4 changes: 2 additions & 2 deletions types/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
const (
MainnetChainId = "fxcore"
mainnetEvmChainID = 530
MainnetGenesisHash = "56629F685970FEC1E35521FC943ACE9AEB2C53448544A0560E4DD5799E1A5593" //nolint:gosec
MainnetGenesisHash = "56629F685970FEC1E35521FC943ACE9AEB2C53448544A0560E4DD5799E1A5593"
MainnetBlockHeightV2 = 5_713_000
MainnetBlockHeightV3 = 8_756_000
MainnetBlockHeightV4 = 10_477_500
Expand All @@ -25,7 +25,7 @@ const (
const (
TestnetChainId = "dhobyghaut"
testnetEvmChainID = 90001
TestnetGenesisHash = "06D0A9659E1EC5B0E57E8E2E5F1B1266094808BC9B4081E1A55011FEF4586ACE" //nolint:gosec
TestnetGenesisHash = "06D0A9659E1EC5B0E57E8E2E5F1B1266094808BC9B4081E1A55011FEF4586ACE"
TestnetBlockHeightV2 = 3_418_880
TestnetBlockHeightV3 = 6_578_000
TestnetBlockHeightV4 = 8_088_000
Expand Down
2 changes: 0 additions & 2 deletions x/ibc/applications/transfer/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const (
)

// NewMsgTransfer creates a new MsgTransfer instance
//
// nolint:interfacer
func NewMsgTransfer(
sourcePort, sourceChannel string,
token sdk.Coin, sender string, receiver string,
Expand Down
2 changes: 1 addition & 1 deletion x/staking/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const (
EventTypeTransferShares = "transfer_shares"
EventTypeGrantPrivilege = "grant_privilege"
EventTypeEditConsensusPubKey = "edit_consensus_pubkey"
EventTypeEditingConsensusPubKey = "editing_consensus_pubkey" //nolint:gosec
EventTypeEditingConsensusPubKey = "editing_consensus_pubkey"
EventTypeEditedConsensusPubKey = "edited_consensus_pubkey"

AttributeKeyOwner = "owner"
Expand Down

0 comments on commit 85a9339

Please sign in to comment.