Skip to content

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

Merged
merged 8 commits into from
Apr 29, 2025

Conversation

ofekshenawa
Copy link
Collaborator

@ofekshenawa ofekshenawa commented Apr 20, 2025

  • 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

@ofekshenawa ofekshenawa marked this pull request as ready for review April 23, 2025 20:25
@ofekshenawa ofekshenawa added dependencies Pull requests that update a dependency file maintenance labels Apr 23, 2025
@ofekshenawa ofekshenawa self-assigned this Apr 24, 2025
Copy link
Member

@ndyakov ndyakov left a 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.

Copy link
Member

@ndyakov ndyakov left a 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.

@ndyakov ndyakov merged commit 2f0a9b7 into master Apr 29, 2025
16 checks passed
@ndyakov ndyakov deleted the os-migrate-golang-ci-to-new-version-format branch April 29, 2025 09:53
ndyakov pushed a commit that referenced this pull request Apr 30, 2025
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants