-
Notifications
You must be signed in to change notification settings - Fork 1.1k
.github: update to golangci-lint v2 #1166
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
squeed
commented
Jul 21, 2025
- change config file
- bump action and lint version
- fix minor issues found.
Some more issues picked up by a new version of golangci-lint. Signed-off-by: Casey Callendrello <[email protected]>
- change config file - bump action and lint version Signed-off-by: Casey Callendrello <[email protected]>
| @@ -1,30 +1,40 @@ | |||
| version: "2" | |||
| linters: | |||
| enable: | |||
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.
Keep the list of used linter visible, only typecheck and maybe ineffassign are not available anymore here. Appart form gofumpt and gci as they are now in formatter section
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.
i just did golangci-lint migrate and this is exactly what it spit out. I'll take a closer look.
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.
That's exactly why I point it 😉. The migrate tool is noisy on that part
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ |
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.
Remove this part as there are no path matching those in the project
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ |
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.
Remove this part as there are no path matching those in the project
| config_file: .yamllint.yaml | ||
|
|
||
| - uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 | ||
| - uses: golangci/golangci-lint-action@v8 |
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.
| - uses: golangci/golangci-lint-action@v8 | |
| - uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 |