-
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 1.49.0 #7114
🌱 Update golangci-lint to 1.49.0 #7114
Conversation
8a8f7d7
to
63b176b
Compare
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.
Had to add package comments to all of our main packages - possibly we could exclude them, but I don't think it does any harm.
9172b86
to
3b91a63
Compare
/hold Until #7115 is decided. |
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.
just nits
Thx for taking care of this
2612f34
to
d0ec8f6
Compare
I squashed the commits so this sing commit now contains the removal of deprecated linters. |
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.
Thx!
last nit
d0ec8f6
to
76c0e62
Compare
Signed-off-by: killianmuldoon <[email protected]>
76c0e62
to
b9509d0
Compare
/retest |
Thx! |
- linters: | ||
- ifshort | ||
text: "variable 'kcpMachinesWithErrors' is only used in the if-statement.*" | ||
path: ^controlplane/kubeadm/internal/workload_cluster_conditions\.go$ | ||
# We don't care about defer in for loops in test files. | ||
- linters: | ||
- gocritic |
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.
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.
For reference: addressed in: https://github.com/kubernetes-sigs/cluster-api/pull/7122/files
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
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
/hold cancel |
Signed-off-by: killianmuldoon [email protected]
Update golangci-lint to version 1.49. This update re-enables the revive rules that were disabled in v1.48.0