diff --git a/.golangci.yml b/.golangci.yml index e294c954b..013c6ed8e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,7 +10,7 @@ linters: disable-all: true enable: - bodyclose -# - depguard + - depguard - dogsled - errcheck - exportloopref diff --git a/app/app.go b/app/app.go index d75a3e1f3..e77f897e2 100644 --- a/app/app.go +++ b/app/app.go @@ -966,10 +966,12 @@ func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router) { } // initParamsKeeper init params keeper and its subspaces +// +//nolint:staticcheck // SA1019: deprecated will be removed later func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey store.StoreKey) paramskeeper.Keeper { paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey) - paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable()) + paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable()) // paramsKeeper.Subspace(banktypes.ModuleName).WithKeyTable(banktypes.ParamKeyTable()) paramsKeeper.Subspace(stakingtypes.ModuleName).WithKeyTable(stakingtypes.ParamKeyTable()) paramsKeeper.Subspace(minttypes.ModuleName).WithKeyTable(minttypes.ParamKeyTable()) diff --git a/x/ratesync/keeper/msg_server.go b/x/ratesync/keeper/msg_server.go index 5b5a65b75..8f7499574 100644 --- a/x/ratesync/keeper/msg_server.go +++ b/x/ratesync/keeper/msg_server.go @@ -238,6 +238,7 @@ func (k msgServer) UpdateHostChain(goCtx context.Context, msg *types.MsgUpdateHo if !slices.Equal(oldHC.Features.LiquidStake.Denoms, msg.HostChain.Features.LiquidStake.Denoms) { oldHC.Features.LiquidStake.Denoms = msg.HostChain.Features.LiquidStake.Denoms } + //nolint: ineffassign,staticcheck // it will be required if more features are added. isOneUpdated, updateStr = saveUpdate(fmt.Sprintf("updates LiquidStake feature from %v to %v", oldHC.Features.LiquidStake, msg.HostChain.Features.LiquidStake)) } err = oldHC.Features.ValdidateBasic()