-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Update golangci-lint to v2 and refine linter configurations #19692
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
base: main
Are you sure you want to change the base?
Conversation
b8cfd8f
to
d0f052c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted filessee 48 files with indirect coverage changes @@ Coverage Diff @@
## main #19692 +/- ##
==========================================
- Coverage 68.81% 67.51% -1.30%
==========================================
Files 421 404 -17
Lines 35863 35373 -490
==========================================
- Hits 24678 23881 -797
- Misses 9754 10094 +340
+ Partials 1431 1398 -33 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
d0f052c
to
4c40f65
Compare
4c40f65
to
11d6483
Compare
/assign @wenjiaswe |
11d6483
to
2c66514
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mmorel-35 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2c66514
to
e9f6f08
Compare
fe289bc
to
f70205b
Compare
43e0707
to
9b86f61
Compare
/cc @ivanvc /ok-to-test |
@mmorel-35, can golangci-lint v2 run/work with a v1 configuration YAML file? I'm thinking if we can split up the single commit into multiple. |
I don't think so. I have tried to minimise modifications as much as possible to ease the review. If you're not using it try changing parameters to hide whitespace changes or use side by side comparison, it saved me a lot time on several occasions. |
Nothing 😄, I wanted just to check if we could split the single commit into smaller commits (given the size of the commit), i.e., one for updating the dependency, and another doing the YAML migration + changes to the code. But it doesn't look like what you mentioned. |
4138eae
to
3e2d80b
Compare
@mmorel-35, with #19757 merged, can you rebase this pull request? Thanks. |
3e2d80b
to
5c77691
Compare
@ivanvc ,
That's ready |
5c77691
to
876cefb
Compare
f007eb1
to
09761f3
Compare
09761f3
to
5488413
Compare
@mmorel-35, sorry for the back and forth regarding the number of commits. But, because we need the new YAML format to use golangci-lint v2, I think it makes more sense to have this in a single commit. The body of the commit can explain the two changes introduced by the single commit in detail. After that, I think we'll be ready to merge :) Thanks again for the work, @mmorel-35! |
Signed-off-by: Matthieu MOREL <[email protected]>
5488413
to
da47213
Compare
Description
This updates golangci-lint to v2 and adapt associated tools/mod and configurations