Skip to content
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

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

killianmuldoon
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 24, 2022
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 24, 2022
Copy link
Contributor Author

@killianmuldoon killianmuldoon left a 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.

@killianmuldoon killianmuldoon changed the title [WIP] 🌱 Update golangci-lint to 1.49.0 🌱 Update golangci-lint to 1.49.0 Aug 24, 2022
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 24, 2022
@killianmuldoon
Copy link
Contributor Author

/hold

Until #7115 is decided.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 24, 2022
Copy link
Member

@sbueringer sbueringer left a 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

bootstrap/kubeadm/main.go Outdated Show resolved Hide resolved
bootstrap/kubeadm/main.go Outdated Show resolved Hide resolved
@killianmuldoon killianmuldoon force-pushed the lint/update-1.49 branch 3 times, most recently from 2612f34 to d0ec8f6 Compare August 24, 2022 13:33
@killianmuldoon
Copy link
Contributor Author

I squashed the commits so this sing commit now contains the removal of deprecated linters.

Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!

last nit

bootstrap/kubeadm/main.go Show resolved Hide resolved
Signed-off-by: killianmuldoon <[email protected]>
@killianmuldoon
Copy link
Contributor Author

/retest

@sbueringer
Copy link
Member

Thx!
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 24, 2022
- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could also delete as a minor cleanup:

 skip-dirs:
  - third_party

skip-dirs:

Copy link
Member

@sbueringer sbueringer Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@ykakarap ykakarap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 25, 2022
@sbueringer
Copy link
Member

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 25, 2022
@k8s-ci-robot k8s-ci-robot merged commit a661c90 into kubernetes-sigs:main Aug 25, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.3 milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants