-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add autofix for gci #2604
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
kind of duplicate of #2591 |
Yea, sorry, I missed the closed issue. |
Anyway, I may be out of line here, but even though GCI is not a responsibility of the golangci-lint team, this change affects everyone that uses the GCI linter and relied on the autofix behavior. |
Your feature request related to a problem? Please describe.
We were using the GCI linter to enforce import order. However, with the 1.44.2 update, it seems like auto-fix support was dropped.
This change makes it harder to enforce import order as the developer has to manually fix the code.
Describe the solution you'd like.
It seems like GCI supports write mode. Using it for auto fix could be possible.
Describe alternatives you've considered.
Removing the GCI linter as it is currently unusable, or downgrading golangci-lint.
Additional context.
No response
The text was updated successfully, but these errors were encountered: