-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golangci: enable unused parameters linter #6018
Conversation
Important Notice This PR includes modifications to the
Please let us know if you need any help. |
@@ -158,6 +158,8 @@ func NewQueryPoolCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevPoolReq | |||
} | |||
|
|||
// convert a string array "[1,2,3]" to []uint64 | |||
// | |||
//nolint:unparam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to reviewers: nolint due to design of osmocli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -8,6 +8,7 @@ import ( | |||
"github.com/osmosis-labs/osmosis/v17/simulation/simtypes" | |||
) | |||
|
|||
//nolint:unparam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to reviewer: nolint because t
might be used in the future
@@ -30,6 +30,7 @@ downtime-duration is a duration, but is restricted to a smaller set. Heres a few | |||
}, &queryproto.RecoveredSinceDowntimeOfLengthRequest{} | |||
} | |||
|
|||
//nolint:unparam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to reviewers: nolint due to design of osmocli
devbot changelog add api golangci: add unused parameters linter |
devbot help |
Hi! I'm DevBot, a bot that helps with common tasks in the development process. Commands:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
* enable unused parameters linter * enable unparam linter and fix basic unparam warnings * finish with unparam * reset deliverTx and mark as nolint * nolint no favor * changelog (cherry picked from commit 2e3f19d) # Conflicts: # x/concentrated-liquidity/client/cli/tx.go # x/protorev/keeper/rebalance.go # x/superfluid/keeper/migrate.go
* enable unused parameters linter * enable unparam linter and fix basic unparam warnings * finish with unparam * reset deliverTx and mark as nolint * nolint no favor * changelog
Closes: #6016
What is the purpose of the change
Enable unused parameters (
unparam
) linter in golangci and fix warningsTesting and Verifying
NA
Documentation and Release Note
NA