Skip to content
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

lint all tests #5127

Closed
wants to merge 158 commits into from
Closed

lint all tests #5127

wants to merge 158 commits into from

Conversation

faddat
Copy link
Member

@faddat faddat commented May 8, 2023

Note

Please don't review/merge till 16 is real good and done. I'll keep this updated as best I can.

Closes: #5109

What is the purpose of the change

This PR makes the Osmosis tests easier to read, understand and work with by enabling golangci-lint on the tests in osmosis.

It was broken off into three PR's for easier review:

After the others above are merged, then this PR really serves to catch stragglers and change the .golangci.yml file so that:

run:
  tests: true

Brief Changelog

  • Ensure that all tests pass the same linters as non-test code.
  • Temporarily disable condtitionals on the linter ci job.

Note:

There is probably a way to make the conditionals work, but my finding was that the linter would always pass, no matter what.

Testing and Verifying

All tests should function exactly the same as they did before this PR.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? no
  • How is the feature or change documented? not applicable

DongLieu and others added 30 commits April 27, 2023 15:34
Co-authored-by: Ruslan Akhtariev <[email protected]>
@faddat
Copy link
Member Author

faddat commented Aug 12, 2023

thanks @pysel -- the unparam linter was super helpful!

@faddat faddat marked this pull request as draft August 12, 2023 11:55
@faddat faddat mentioned this pull request Aug 16, 2023
6 tasks
@faddat
Copy link
Member Author

faddat commented Aug 16, 2023

closing in favor of #6083

@faddat faddat closed this Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use golangci-lint on tests
4 participants