-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[27.x backport] update golangci-lint to v1.62.0 #5640
[27.x backport] update golangci-lint to v1.62.0 #5640
Conversation
full diff: golangci/golangci-lint@v1.61.0...v1.62.0 Changelog: https://golangci-lint.run/product/changelog/#v1620 Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 07e5ddd) Signed-off-by: Austin Vazquez <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 27.x #5640 +/- ##
=======================================
Coverage 58.54% 58.54%
=======================================
Files 346 346
Lines 29335 29335
=======================================
Hits 17173 17173
Misses 11184 11184
Partials 978 978
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@austinvazquez I should probably mention as "long lived" branches can be relevant to you. The reason I'm trying to keep a bit "up" with golangci-lint is that older versions are not always compatible with updated versions of Go. So whenever I update versions of Go, it's usually also a reminder "let me check if there's updates for Golang CI lint to go in first". Some of the GolangCI-lint updates are easy ('just update and be done!') but you may happen to run into updated linters, now expecting you to make changes in code I guess that last situation depends a bit; if the branch is expected to still live long enough, it may be worth going the extra mile to include the linting fixes. If the branch is not expected to live much longer and those fixes are "complicated" it's of course a matter of outweighing the pros/cons (are they actually relevant linting fixes, or just "make the code slightly better"?); disabling the linter (or a global "ignore") is always an option for those of course. |
So maybe some of these could be relevant for "your" branches (I realised I didn't mark all of them for cherry-pick), but as described above "it depends" to what extent to go and fix all linting issues. 😅 |
@thaJeztah, thanks for the callout. Yeah there is certainly a balance to be maintained. Sometimes I just enjoy the grunt work as a break from more taxing problems, but I also understand the value just might not be worth the effort or risk for that matter. The Go updates are nice to validate toolchain updates are not breaking functionality. They have the Go promise but "trust but verify". |
- What I did
Backports #5632 to 27.x
full diff: golangci/golangci-lint@v1.61.0...v1.62.0
Changelog: https://golangci-lint.run/product/changelog/#v1620
(cherry picked from commit 07e5ddd)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)