-
Notifications
You must be signed in to change notification settings - Fork 2.4k
migrate golangci-lint config to v2 format #3354
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
Conversation
ofekshenawa
commented
Apr 20, 2025
•
edited by ndyakov
Loading
edited by ndyakov
- bump config schema to version “2”
- re‑add 5m timeout under run
- enable config verification in GitHub Action (verify: true)
- Address several golangci-lint/staticcheck warnings:
-
- Use a tagged switch instead of an if/else if chain on readType
…grate-golang-ci-to-new-version-format
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.
Let's work on setting up the staticcheck
in such a way that it won't require us to sacrifice on readability just to lint the code.
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.
Thank you, I think this is a good configuration to start from.
* migrate golangci-lint config to v2 format * chore: skip CI on migration [skip ci] * Bump golangci version * Address several golangci-lint/staticcheck warnings * change staticchecks settings