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: add linters with no violations #4307

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

johnsaigle
Copy link
Contributor

@johnsaigle johnsaigle commented Mar 20, 2025

This PR adds new linters to golangci-lint, specifically ones that the current code does not violate. The idea here is to get these new linters "for free" and prevent any future code from violating these rules.

Related:
This PR has different scope from these other open PRs, as they aim to resolve violations:

@johnsaigle johnsaigle added the quality doesn't fix a known bug, doesn't change behavior, but increase code quality label Mar 20, 2025
@johnsaigle johnsaigle force-pushed the free-linters branch 5 times, most recently from 5ddf3e7 to 74de37c Compare March 20, 2025 16:33
@johnsaigle johnsaigle marked this pull request as ready for review March 20, 2025 21:23
@johnsaigle johnsaigle requested a review from evan-gray as a code owner March 20, 2025 21:23
@johnsaigle johnsaigle force-pushed the free-linters branch 2 times, most recently from 6399c72 to d40d1ee Compare March 25, 2025 17:46
@johnsaigle johnsaigle marked this pull request as draft April 1, 2025 19:14
@johnsaigle
Copy link
Contributor Author

johnsaigle commented Apr 1, 2025

Converting this to draft for now. We might as well update the major version of golangci-lint first as it changes to yml format. #4322 It's also possible that these linters will have violations in the new major version, so I'll need to revise the contents of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality doesn't fix a known bug, doesn't change behavior, but increase code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant