-
Notifications
You must be signed in to change notification settings - Fork 609
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
chore(lint): fix all linter issues; add return check; re-enable in CI #6112
Conversation
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
- name: function-result-limit | ||
severity: warning | ||
disabled: false | ||
arguments: [4] |
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.
just curious, what's the args 4 here?
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.
It limits the number of returns to 4. I added a comment to explain this
I'm happy for you to just merge this @p0mvn when things are ready |
80170b7
to
c19f808
Compare
…#6112) * linter: max return values * updates * fix all linter errors * attempt to fix linter in CI * remove depguard * godocs * move unused twap helper to test export * bug * bring back getAllHistoricalPoolIndexedTWAPs and add nolint * Update .golangci.yml * fix more issues * conflict * new lints (cherry picked from commit 714f573) # Conflicts: # x/concentrated-liquidity/simulation/sim_msgs.go # x/concentrated-liquidity/swaps.go # x/incentives/keeper/distribute.go # x/superfluid/keeper/epoch.go # x/twap/store.go
…#6112) * linter: max return values * updates * fix all linter errors * attempt to fix linter in CI * remove depguard * godocs * move unused twap helper to test export * bug * bring back getAllHistoricalPoolIndexedTWAPs and add nolint * Update .golangci.yml * fix more issues * conflict * new lints (cherry picked from commit 714f573) # Conflicts: # x/concentrated-liquidity/swaps.go # x/incentives/keeper/distribute.go
…#6112) * linter: max return values * updates * fix all linter errors * attempt to fix linter in CI * remove depguard * godocs * move unused twap helper to test export * bug * bring back getAllHistoricalPoolIndexedTWAPs and add nolint * Update .golangci.yml * fix more issues * conflict * new lints
Closes: ##6111, #5984
What is the purpose of the change
One of the previous PRs broke linter in CI. As a result, we have a lot of local failures. This PR fixes all of them
Additionally, it adds a new arg check linter via
revive
Lastly, it also removes a
depguard
linter. This linter configures an allow and a deny list of imports. Currently, we don't have that configured and there are numerous failures. Personally, I don't see it as something useful. If someone wants it, please configure it in a separate PR.No changelog label is set as no exported API is broken.
Testing and Verifying
This change is already covered by existing tests
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)