Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable a few more golangci-lint rules #1280

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Enable a few more golangci-lint rules #1280

merged 1 commit into from
Dec 3, 2024

Conversation

anderseknert
Copy link
Member

Some of these were broken in the past. Enabling those now and one of them caught an actual issue, where we'd shadow the value of err in the command worker, and may not have some errors reported as we'd have expected.

The nolintlint rule that checks ignore directives may turn out to be too annoying, but it was at least good to have it help clear out comments that were not redundant. Leaving it on for now and we can always disable if it turns out to be irritating.

Some of these were broken in the past. Enabling those now and one
of them caught an actual issue, where we'd shadow the value of
`err` in the command worker, and may not have some errors reported
as we'd have expected.

The nolintlint rule that checks ignore directives may turn out to
be too annoying, but it was at least good to have it help clear out
comments that were not redundant. Leaving it on for now and we can
always disable if it turns out to be irritating.

Signed-off-by: Anders Eknert <anders@styra.com>
@anderseknert anderseknert merged commit da251c9 into main Dec 3, 2024
5 checks passed
@anderseknert anderseknert deleted the more-linters branch December 3, 2024 10:04
charlieegan3 pushed a commit to charlieegan3/regal that referenced this pull request Jan 6, 2025
Some of these were broken in the past. Enabling those now and one
of them caught an actual issue, where we'd shadow the value of
`err` in the command worker, and may not have some errors reported
as we'd have expected.

The nolintlint rule that checks ignore directives may turn out to
be too annoying, but it was at least good to have it help clear out
comments that were not redundant. Leaving it on for now and we can
always disable if it turns out to be irritating.

Signed-off-by: Anders Eknert <anders@styra.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants