Skip to content

Commit

Permalink
bump: golang-ci-lint-action (#974)
Browse files Browse the repository at this point in the history
* Bump golangci/golangci-lint-action from 3 to 4

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3...v4)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* update lint action

* do the easy stuff first....

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
faddat and dependabot[bot] authored Mar 2, 2024
1 parent 647de9e commit 3733476
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4

- name: golangci-lint-junod
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --timeout 10m
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ linters-settings:

issues:
max-issues-per-linter: 0
max-same-issues: 0
2 changes: 1 addition & 1 deletion app/decorators/change_rate_decorator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

// Define an empty ante handle
var (
EmptyAnte = func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) {
EmptyAnte = func(ctx sdk.Context, _ sdk.Tx, _ bool) (sdk.Context, error) {
return ctx, nil
}
)
Expand Down
2 changes: 1 addition & 1 deletion app/openapiconsole/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var index embed.FS
func Handler(title, specURL string) http.HandlerFunc {
t, _ := template.ParseFS(index, "index.tpl")

return func(w http.ResponseWriter, req *http.Request) {
return func(w http.ResponseWriter, _ *http.Request) {
t.Execute(w, struct { //nolint:errcheck
Title string
URL string
Expand Down
2 changes: 1 addition & 1 deletion cmd/junod/cmd/genica.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func AddGenesisIcaCmd(defaultNodeHome string) *cobra.Command {
Short: "Add ICA config to genesis.json",
Long: `Add default ICA configuration to genesis.json`,
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)
serverCtx := server.GetServerContextFromCmd(cmd)
config := serverCtx.Config
Expand Down
4 changes: 2 additions & 2 deletions cmd/junod/cmd/resets.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func ResetCmd() *cobra.Command {
var ResetWasmCmd = &cobra.Command{
Use: "wasm",
Short: "Reset WASM files",
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx := client.GetClientContextFromCmd(cmd)
serverCtx := server.GetServerContextFromCmd(cmd)
config := serverCtx.Config
Expand All @@ -46,7 +46,7 @@ var ResetWasmCmd = &cobra.Command{
var ResetAppCmd = &cobra.Command{
Use: "app",
Short: "Reset App files",
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx := client.GetClientContextFromCmd(cmd)
serverCtx := server.GetServerContextFromCmd(cmd)
config := serverCtx.Config
Expand Down
4 changes: 2 additions & 2 deletions x/clock/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetCmdShowContracts() *cobra.Command {
Use: "contracts",
Short: "Show addresses of all current clock contracts",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down Expand Up @@ -91,7 +91,7 @@ func GetCmdParams() *cobra.Command {
Use: "params",
Short: "Show all module params",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/clock/keeper/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (k Keeper) GetPaginatedContracts(ctx sdk.Context, pag *query.PageRequest) (
k.cdc,
store,
pag,
func(key []byte, value *types.ClockContract) (*types.ClockContract, error) {
func(_ []byte, value *types.ClockContract) (*types.ClockContract, error) {
return value, nil
},
func() *types.ClockContract {
Expand Down
6 changes: 3 additions & 3 deletions x/cw-hooks/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetCmdParams() *cobra.Command {
Use: "params",
Short: "Show all module params",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand All @@ -54,7 +54,7 @@ func GetStakingContracts() *cobra.Command {
Use: "staking-contracts",
Short: "Show all staking contracts",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand All @@ -78,7 +78,7 @@ func GetGovernanceContracts() *cobra.Command {
Use: "governance-contracts",
Short: "Show all governance contracts",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/feepay/ante/fee_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewFeeRouteDecorator(feePayKeeper feepaykeeper.Keeper, feePayDecorator *Ded
// This empty ante is used to call AnteHandles that are not attached
// to the main AnteHandler.
var (
EmptyAnte = func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) {
EmptyAnte = func(ctx sdk.Context, _ sdk.Tx, _ bool) (sdk.Context, error) {
return ctx, nil
}
)
Expand Down
2 changes: 1 addition & 1 deletion x/feepay/keeper/feepay.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (k Keeper) GetContracts(ctx sdk.Context, pag *query.PageRequest) (*types.Qu
k.cdc,
store,
pag,
func(key []byte, value *types.FeePayContract) (*types.FeePayContract, error) {
func(_ []byte, value *types.FeePayContract) (*types.FeePayContract, error) {
return value, nil
},
func() *types.FeePayContract {
Expand Down
2 changes: 1 addition & 1 deletion x/feeshare/ante/ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

// Define an empty ante handle
var (
EmptyAnte = func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) {
EmptyAnte = func(ctx sdk.Context, _ sdk.Tx, _ bool) (sdk.Context, error) {
return ctx, nil
}
)
Expand Down
2 changes: 1 addition & 1 deletion x/globalfee/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetCmdShowMinimumGasPrices() *cobra.Command {
Long: "Show all minimum gas prices",
Aliases: []string{"min"},
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/globalfee/querier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestQueryMinimumGasPrices(t *testing.T) {
},
},
"no param set": {
setupStore: func(ctx sdk.Context, k globalfeekeeper.Keeper) {
setupStore: func(_ sdk.Context, _ globalfeekeeper.Keeper) {
},
},
}
Expand Down
8 changes: 4 additions & 4 deletions x/mint/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func GetCmdQueryParams() *cobra.Command {
Use: "params",
Short: "Query the current minting parameters",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down Expand Up @@ -67,7 +67,7 @@ func GetCmdQueryInflation() *cobra.Command {
Use: "inflation",
Short: "Query the current minting inflation value",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down Expand Up @@ -96,7 +96,7 @@ func GetCmdQueryAnnualProvisions() *cobra.Command {
Use: "annual-provisions",
Short: "Query the current minting annual provisions value",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down Expand Up @@ -124,7 +124,7 @@ func GetCmqQueryTargetSupply() *cobra.Command {
Use: "target-supply",
Short: "Query the current target supply for this phase value",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/tokenfactory/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func GetParams() *cobra.Command {
Use: "params [flags]",
Short: "Get the params for the x/tokenfactory module",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
Expand Down
10 changes: 5 additions & 5 deletions x/tokenfactory/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func SimulateMsgSetDenomMetadata(
app *baseapp.BaseApp,
ctx sdk.Context,
accs []simtypes.Account,
chainID string,
_ string,
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
// Get create denom account
createdDenomAccount, _ := simtypes.RandomAcc(r, accs)
Expand Down Expand Up @@ -210,7 +210,7 @@ func SimulateMsgChangeAdmin(
app *baseapp.BaseApp,
ctx sdk.Context,
accs []simtypes.Account,
chainID string,
_ string,
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
// Get create denom account
createdDenomAccount, _ := simtypes.RandomAcc(r, accs)
Expand Down Expand Up @@ -260,7 +260,7 @@ func SimulateMsgBurn(
app *baseapp.BaseApp,
ctx sdk.Context,
accs []simtypes.Account,
chainID string,
_ string,
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
// Get create denom account
createdDenomAccount, _ := simtypes.RandomAcc(r, accs)
Expand Down Expand Up @@ -314,7 +314,7 @@ func SimulateMsgMint(
app *baseapp.BaseApp,
ctx sdk.Context,
accs []simtypes.Account,
chainID string,
_ string,
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
// Get create denom account
createdDenomAccount, _ := simtypes.RandomAcc(r, accs)
Expand Down Expand Up @@ -356,7 +356,7 @@ func SimulateMsgCreateDenom(tfKeeper TokenfactoryKeeper, ak types.AccountKeeper,
app *baseapp.BaseApp,
ctx sdk.Context,
accs []simtypes.Account,
chainID string,
_ string,
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
// Get sims account
simAccount, _ := simtypes.RandomAcc(r, accs)
Expand Down

0 comments on commit 3733476

Please sign in to comment.