8000 ci: Add nolintlint to golangci-lint by johnsaigle · Pull Request #4346 · wormhole-foundation/wormhole · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ci: Add nolintlint to golangci-lint #4346

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

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

johnsaigle
Copy link
Contributor

https://golangci-lint.run/usage/linters/#nolintlint

Configuration:

  • All nolint directives need a reason
  • The tool will flag nolints that aren't actually triggered (i.e. it'll flag outdated directives that don't apply anymore). (When a nolint is removed here, this is why.)
  • Ensures correct formatting

This PR was created by adding the linter and then running golangci-lint run --fix. Then I went in and added manual comments where necessary.

In a few cases I added TODO comments where the lint seemed correct. The idea is to limit the scope of this PR is to add the new linter, not to refactor existing code.

@johnsaigle johnsaigle added the ci label Apr 10, 2025
@johnsaigle johnsaigle marked this pull request as ready for review April 10, 2025 20:24
bruce-riley
bruce-riley previously approved these changes Apr 10, 2025
bruce-riley
bruce-riley previously approved these changes Apr 14, 2025
@johnsaigle johnsaigle requested a review from bruce-riley April 15, 2025 12:47
@johnsaigle johnsaigle merged commit eae85c9 into wormhole-foundation:main Apr 15, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0