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

CI: tidy up golangci-lint #1165

Merged
merged 3 commits into from
Oct 11, 2023
Merged

CI: tidy up golangci-lint #1165

merged 3 commits into from
Oct 11, 2023

Conversation

lmb
Copy link
Collaborator

@lmb lmb commented Oct 11, 2023

CI: output line numbers from golangci-lint

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>

CI: remove errcheck linter

The errcheck linter causes too many false positives to be useful. For
example, running the upstream errcheck binary flags a ton of
"unchecked" defer Close() calls which are probably filtered out by
golangci-lint.

As an appeal to authority, Cilium proper doesn't have errcheck enabled
either. And the author of the high quality staticcheck has said that
implementing errcheck without a high false positive rate is not possible.

Just disable the linter.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>

CI: remove obsolete structcheck rules

structcheck was obsoleted a while ago. Remove the obsolete exclude rules.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
The errcheck linter causes too many false positives to be useful.
For example, running the upstream errcheck binary flags a ton of
"unchecked" defer Close() calls which are probably filtered out
by golangci-lint.

As an appeal to authority, Cilium proper doesn't have errcheck
enabled either. And the author of the high quality staticcheck
has said that implementing errcheck without a high false positive
rate is not possible.

Just disable the linter.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
structcheck was obsoleted a while ago. Remove the obsolete exclude
rules.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
@lmb lmb requested a review from ti-mo October 11, 2023 10:07
@ti-mo ti-mo merged commit 7b4b810 into cilium:main Oct 11, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants