-
-
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
Let me selectively disable linters from CLI which are enabled in the config #1272
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Not sure if you tried Personally, I like to keep it simple like below, which one option will supercede another option field by field, but not all inter dependencies among them. AFAIK, a lot of OSS projects are moving in declarative configuration way, which is taking config file as source of true.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
As much as I understand the motivation behind @sayboras's comment, still it'll make my life a lot easier if I'm using So now it seems that I have to write a Vimscript function to locate the configuration file, parse it, ignore |
You can't ignore |
@bombsimon You were right... I just wrote the vimscript to parse Reason though, was not that my code didn't compile, but was that ALE runs And by the way without Edit: I enabled |
I would like this option as well. CLI flags should have precedence over config files, so I can have a config file but occasionally invoke the linter with a different set of checkers enabled. There is a clear precedence. My particular use-case is that I'd like to disable a slow linter on a single OS in a github action that runs on multiple OSes without creating a different config file for each os. So they use the same config, but on the github action for windows I would run
Where the |
Is your feature request related to a problem? Please describe.
I use golangci-lint with a global
.golangci-lint.yaml
config in my daily dev flow. I sometimes use it to check code that I don't own (so adding a local config is not really a solution).Sometimes a linter from my default config causes problems or gives too many results, thus I'd like to disable it.
Describe the solution you'd like
I'd like a way to disable a (set of) specific linter(s) from the CLI, i.e. the
-D
flag should have precedence over the enable list in my global config. Currently this is not allowed:Running error: linter "superduperlinter" can't be disabled and enabled at one moment
The text was updated successfully, but these errors were encountered: