-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Update golangci-lint to v1.51.0 #8046
🌱 Update golangci-lint to v1.51.0 #8046
Conversation
util/container/image.go
Outdated
@@ -17,8 +17,7 @@ limitations under the License. | |||
// Package container implements container utility functionality. | |||
package container | |||
|
|||
import ( | |||
// Import the crypto sha256 algorithm for the docker image parser to work | |||
import ( // Import the crypto sha256 algorithm for the docker image parser to work |
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.
Looks like the gci linter has some new opinions about comment placement - it looks worse to me, but I'm fine with merging this as it won't impact in many places.
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.
Nice. I prefer the new variant. I think it's the mainstream variant (IIRC)
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.
Yeah - the current version is nice. The outdated version above was the result from make lint-fix
and it is ... not nice
/retest |
c997214
to
6e25b5c
Compare
/lgtm |
LGTM label has been added. Git tree hash: d041166102077b439c5b43451b392b3523b2b5e7
|
/lgtm |
/approve @oscr It could be interesting to test the new ginkgolinter in a follow-up (I didn't take a closer look what kind of changes it would enforce, so we definitely would have to take a look first before we decide) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I couldn't get this to run quickly so I decided to do a quick update - it was crashing for me 🤔 |
I was actually experimenting with a similar pr as this one, but ginkgolinter was also crashing for me 😁 |
Should we track it in an issue for now and then re-evaluate once those issues are resolved? (we should probably report them when we have time) |
Release notes: https://github.com/golangci/golangci-lint/releases/tag/v1.51.0