Skip to content
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

fix: forbidigo migration #5606

Merged
merged 1 commit into from
Mar 24, 2025
Merged

fix: forbidigo migration #5606

merged 1 commit into from
Mar 24, 2025

Conversation

ldez
Copy link
Member

@ldez ldez commented Mar 24, 2025

Fixes #5602

@ldez ldez added bug Something isn't working area: migration labels Mar 24, 2025
@ldez ldez added this to the v2-unreleased milestone Mar 24, 2025
@ldez ldez merged commit 6bac409 into golangci:main Mar 24, 2025
19 checks passed
@ldez ldez deleted the fix/forbidigo-migration branch March 24, 2025 19:05
@ldez ldez modified the milestones: v2-unreleased, v2.0 Mar 24, 2025
brandur added a commit to riverqueue/river that referenced this pull request Mar 25, 2025
For better or rwose, golangci-lint has released a v2 [1] that's
incompatible with v1. It'll only be a matter of time until we're forced
to upgrade to it, so I figure we may as well do it early.

There's a bunch of new obnoxious linters that I've disabled. Most of
these complain about "cyclomatic complexity" or "cognitive complexity"
or functions being too long (they all seem to want everything broken
down into functions of ten lines).

Aside from that, `testifylint` seems to have gotten even more effective
at finding misuses of testify, so it fixed a bunch more arguable misuses
of various assertions, which seems good for normalizing code.

The structure of the YAML file changes fairly significantly, but it's
all basically the same thing with various aspects reorganized. I made
the new one using the built-in `golangci-lint migrate` and copied
comments over manually.

If we can get this in, the next step will be to distribute it out to
other River projects. Most of them are using copies of this repo's
configuration file, so it should be pretty easy to do.

[1] https://ldez.github.io/blog/2025/03/23/golangci-lint-v2/
[2] golangci/golangci-lint#5606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: migration bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

forbidigo config migration is incorrect
1 participant