-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
v2: Re-allow enabling formatters via --enable
CLI option of run
command
#5664
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
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
--enable
CLI option--enable
CLI option of run
command
I've doublechecked the Thus, passing them to Background: I'm running the reviewdog integration of this, and that is only calling the |
Hello, Inside v2, a formatter is not a linter. The formatters are related to the new command So, a configuration file is required in this context. |
Welcome
How did you install golangci-lint?
Official binary
Your feature request related to a problem? Please describe
In v1, formatters were not separated from linters and could, without any configuration yaml, be enabled via the cli, e.g. like this:
After v2, I'm getting an error message:
@ldez's release blog post mentions that
golanglint-ci run
will run all formatters from the configuration file as well: https://ldez.github.io/blog/2025/03/23/golangci-lint-v2/#:~:text=The%20formatters%20defined%20in%20this%20section%20are%20automatically%20used%20as%20%E2%80%9Clinter%E2%80%9D%20when%20you%20run%20the%20command%20golangci%2Dlint%20run.Thus, I would expect that the
--enable
flag ofrun
also allows to activate formatters.Describe the solution you'd like
As before, adding formatters into
run --enable
should work without issuesDescribe alternatives you've considered
Adding configuration files to each repository
Additional context
No response
Supporter
The text was updated successfully, but these errors were encountered: