Upgrade golangci-lint from v1 to v2#576
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.
should we remove that file?
Summary
.golangci.ymlto v2 formatChanges Made
Test plan
Tracking: redhat-best-practices-for-k8s/telco-bot#49