-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,40 @@ | ||
| version: "2" | ||
| linters: | ||
| enable: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i just did
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| - contextcheck | ||
| - errcheck | ||
| - errorlint | ||
| - gci | ||
| - ginkgolinter | ||
| - gocritic | ||
| - gofumpt | ||
| - govet | ||
| - ineffassign | ||
| - misspell | ||
| - nolintlint | ||
| - nonamedreturns | ||
| - predeclared | ||
| - staticcheck | ||
| - typecheck | ||
| - unconvert | ||
| - unused | ||
| - whitespace | ||
|
|
||
| linters-settings: | ||
| gci: | ||
| sections: | ||
| - standard | ||
| - default | ||
| - prefix(github.com/containernetworking) | ||
|
|
||
| run: | ||
| timeout: 5m | ||
| exclusions: | ||
| generated: lax | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
|
Comment on lines
+21
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| formatters: | ||
| enable: | ||
| - gci | ||
| - gofumpt | ||
| settings: | ||
| gci: | ||
| sections: | ||
| - standard | ||
| - default | ||
| - prefix(github.com/containernetworking) | ||
| exclusions: | ||
| generated: lax | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
|
Comment on lines
+37
to
+40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
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.