-
Notifications
You must be signed in to change notification settings - Fork 112
Upgrade golangci-lint from v1 to v2 #576
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
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sebrandon1 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
e8a3495 to
a1cba07
Compare
|
The new linter requires some code changes. |
- Update GOLANGCI_LINT_VERSION from v1.64.8 to v2.0.2 - Migrate .golangci.yml to v2 format: - Add version: "2" declaration - Move linters-settings under linters.settings Tracking: redhat-best-practices-for-k8s/telco-bot#49
a1cba07 to
e789919
Compare
|
I've fixed the linter failures by updating the
The |
|
I'd prefer to fix the linter issues first then update the linter version. |
|
@sebrandon1: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
So I've been messing with |
| - unused | ||
| linters-settings: | ||
| errcheck: | ||
| exclude: .errcheck_excludes.txt |
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.
should we remove that file?
Summary
.golangci.ymlto v2 formatChanges Made
Test plan
Tracking: redhat-best-practices-for-k8s/telco-bot#49