Migration to golangci-lint v2…#8745
Conversation
|
cc @waveywaves |
f9b85f7 to
d6b0335
Compare
|
/cc @waveywaves |
| - pkg/client | ||
| - pkg/spire/test | ||
| - third_party$ | ||
| - builtin$ |
| - EXC0012 # https://golangci-lint.run/usage/false-positives/#exc0012 | ||
| - EXC0014 # https://golangci-lint.run/usage/false-positives/#exc0014 |
There was a problem hiding this comment.
should we still keep these rules, they are good for documentation
- EXC0012 # Checks if exported elements have comments
- EXC0014 # Checks if comments on exported elements have proper form
There was a problem hiding this comment.
Ah I ran golangci-lint migrate and it removed it, I wonder if it's still something configurable or not.
There was a problem hiding this comment.
I think we can add it later, it's not a blocker
There was a problem hiding this comment.
I think golangci-lint v2 no longer has "off-by-default" functionality.
Apart from path specific exclusions, the new configuation is
exclusions:
generated: lax
presets:
- common-false-positives
- legacy
- std-error-handling
Which I think means that those comment rules are on.
It should be possible to verify by breaking a comment and running lint
There was a problem hiding this comment.
Thank you for checking this Andrea
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: waveywaves The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Also updating the action as it is tied to it. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
d6b0335 to
0ddf20c
Compare
|
/lgtm |
|
/cherry-pick release-v1.0.x |
|
@waveywaves: new pull request created: #8942 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Changes
Also updating the action as it is tied to it.
Signed-off-by: Vincent Demeester vincent@sbr.pm
Closes #8740
/kind misc
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes