-
-
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
Flag --disable-all does not disable all #1188
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
I think this was indeed user error.
Seems to work okay. Perhaps there could be a note in the help for Or rather flags should take precedence over config file? Why does If this is working as intended, feel free to close the issue. |
I was about to close this since it's always been this way but I had a look at the documentation which clearly states
So I guess we either need to update the documentation or actually ensure that all flags, including |
It looks correct to me:
In my opinion changing existing behavior would not be backward compatible and the only option seems to be to update documentation. Unfortunately I can't see how documentation can be improved as it clearly states how config file and flags are treated. Therefore - I believe that is issue can be closed (as @rhcarvalho suggests). |
Please include the following information:
Version of golangci-lint
Config file
Go environment
Verbose output of running
Thanks for golangci-lint!
Maybe this is a user error. I expected to be able to run a single linter at a time by combining
--disable-all
and-E
, however when I run:Note that at least two linters were run --
lll
andbodyclose
.I'm using the latest release
v1.27.0
and I have rungolangci-lint cache clean
, it makes no difference.If I try to run a single linter, I still get reports from other linters:
The command line help suggests
--disable-all
should work as is, specially when--presets
runs a certain group of linters and implies--disable-all
.The text was updated successfully, but these errors were encountered: