Feature: Run a specific rule from the console #1726
Replies: 5 comments 1 reply
|
Hi @Danil42Russia, thanks for opening an issue. I'm hesitant to add this for two reasons:
Does (2) work for your use case? |
|
Yes, I chose the second option, but the error message is a bit depressing :( . I prefer the output in In principle, I agree with your arguments as to why this should not be done (although I would add a ban on this flag if there is a It seems worth mentioning this point in the documentation; it certainly won't be superfluous. P.S. I needed this to start sorting out the problems, because right now there are |
|
Yeah, it's kind of unfortunate that the plain format can't easily be filtered. I definitely see the value in that, especially for incremental fixes. |
|
I'm going to convert this into a discussion since this is something I'm interested in, but don't have a clear design/picture for yet. |
|
From @ytausch #2076 (comment): Unfortunately,
would not really help us because we rely on the autofix output of zizmor to make automated PRs. Hence, it's not enough for us to filter the machine-readable output. Also, would introducing the --rule option really increase the probability that people disable certain rules in a security-neglecting way? After all, you would only be able to execute certain rules, not exclude some via the CLI. |
Uh oh!
There was an error while loading. Please reload this page.
Pre-submission checks
What's the problem this feature will solve?
I want to run only a specific check by name without using the
zizmor.ymlconfig file.Describe the solution you'd like
Add flag
--select/--rules/ otherAdditional context
Here we need to think about how this should be combined with
--collect. Perhaps we should prohibit their use togetherAll reactions