diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 16b6abe45..cc7b20570 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,7 @@ jobs: - uses: golangci/golangci-lint-action@master with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.26 + version: v1.27 args: --timeout 10m github-token: ${{ secrets.github_token }} if: "env.GIT_DIFF != ''" diff --git a/codec/legacy/codec.go b/codec/legacy/codec.go index 5a9f11e12..b6bebad24 100644 --- a/codec/legacy/codec.go +++ b/codec/legacy/codec.go @@ -5,6 +5,7 @@ import ( cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" ) +//nolint:stylecheck // ignore linting of comment // Deprecated: Cdc defines a global generic sealed Amino codec to be used throughout sdk. It // has all Tendermint crypto and evidence types registered. // diff --git a/x/auth/alias.go b/x/auth/alias.go index 9895210c9..036100bf8 100644 --- a/x/auth/alias.go +++ b/x/auth/alias.go @@ -53,7 +53,7 @@ var ( NewQueryAccountParams = types.NewQueryAccountParams NewStdTx = types.NewStdTx CountSubKeys = types.CountSubKeys - NewStdFee = types.NewStdFee //nolint:staticcheck + NewStdFee = types.NewStdFee //nolint:staticcheck // this will be removed when proto is ready StdSignBytes = types.StdSignBytes DefaultTxDecoder = types.DefaultTxDecoder DefaultTxEncoder = types.DefaultTxEncoder @@ -88,9 +88,9 @@ type ( QueryAccountParams = types.QueryAccountParams StdSignMsg = types.StdSignMsg StdTx = types.StdTx - StdFee = types.StdFee //nolint:staticcheck + StdFee = types.StdFee //nolint:staticcheck // this will be removed when proto is ready StdSignDoc = types.StdSignDoc - StdSignature = types.StdSignature //nolint:staticcheck + StdSignature = types.StdSignature //nolint:staticcheck // this will be removed when proto is ready TxBuilder = types.TxBuilder GenesisAccountIterator = types.GenesisAccountIterator ModuleAccount = types.ModuleAccount diff --git a/x/auth/ante/basic.go b/x/auth/ante/basic.go index 0f464b491..b1ed1e8d3 100644 --- a/x/auth/ante/basic.go +++ b/x/auth/ante/basic.go @@ -125,7 +125,7 @@ func (cgts ConsumeTxSizeGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, sim } // use stdsignature to mock the size of a full signature - simSig := types.StdSignature{ //nolint:staticcheck + simSig := types.StdSignature{ //nolint:staticheck // this will be removed when proto is ready Signature: simSecp256k1Sig[:], PubKey: pubkey.Bytes(), }