-
Notifications
You must be signed in to change notification settings - Fork 5
Upgrade to Go 1.25 and golangci-lint v2 #781
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
Changes from all commits
6fd8a7e
72c6a25
473a5f2
40790db
26ea1f0
f52adb0
678211b
2103d5f
964a326
f419d17
389631f
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,38 +1,59 @@ | ||
| version: "2" | ||
| linters: | ||
| enable: | ||
| - errcheck | ||
| - dogsled | ||
| - dupword | ||
| - gochecknoinits | ||
| # We don't use goconst because it gives false positives in the tests. | ||
| # - goconst | ||
| - gofmt | ||
| # We don't use revive because it gives false positives in the tests. | ||
| # - revive | ||
| - gosec | ||
| - gosimple | ||
| - ineffassign | ||
| - staticcheck | ||
| - typecheck | ||
| - interfacebloat | ||
| - unconvert | ||
| - unused | ||
| - vet | ||
| - vetshadow | ||
| - dogsled | ||
| - dupword | ||
| - unparam | ||
| - interfacebloat | ||
| - usestdlibvars | ||
| - whitespace | ||
| issues: | ||
| exclude-rules: | ||
| - path: server/legacy/controllers/events/events_controller(.+)test.go | ||
| linters: | ||
| - dogsled | ||
| - path: server/legacy/events/event_parser_test.go | ||
| linters: | ||
| - dogsled | ||
| - path: server/legacy/events/command_runner_test.go | ||
| linters: | ||
| - dogsled | ||
| linters-settings: | ||
| interfacebloat: | ||
| max: 7 | ||
| settings: | ||
| interfacebloat: | ||
| max: 7 | ||
| staticcheck: | ||
| checks: | ||
| - all | ||
| - -QF1001 | ||
| - -QF1007 | ||
| - -QF1008 | ||
| - -QF1011 | ||
| - -ST1000 | ||
| - -ST1003 | ||
| - -ST1016 | ||
| - -ST1020 | ||
| - -ST1021 | ||
| - -ST1022 | ||
| - -ST1023 | ||
| exclusions: | ||
| generated: lax | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| rules: | ||
| - linters: | ||
| - dogsled | ||
| path: server/legacy/controllers/events/events_controller(.+)test.go | ||
| - linters: | ||
| - dogsled | ||
| path: server/legacy/events/event_parser_test.go | ||
| - linters: | ||
| - dogsled | ||
| path: server/legacy/events/command_runner_test.go | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| formatters: | ||
| enable: | ||
| - gofmt | ||
| exclusions: | ||
| generated: lax | ||
| paths: | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
These changes were produced by running
golangci-lint migrate. See https://golangci-lint.run/docs/product/migration-guide/#command-migrate for details