vale icon indicating copy to clipboard operation
vale copied to clipboard

Allow linting files with a single style or a subset of styles

Open MLNW opened this issue 1 year ago • 1 comments

It would be great if one could run vale on files and provide either a single style or a subset of styles to apply.

This would help in testing new styles and allows creating reports for a specific violation.

AFAIK this option is currently not available. I guess one could work around it by creating a specific configuration for running a specific style but that is quite cumbersome in comparison to providing styles as command line options.

MLNW avatar Aug 05 '22 09:08 MLNW

AFAIK this option is currently not available.

It isn't currently available, but the implementation here should probably be similar to the current --minAlertLevel flag.

jdkato avatar Aug 09 '22 00:08 jdkato

A teammate just asked me a similar question. To do this, currently, I cheat a bit. I know that our docset has no error-level violations (because we break CI on those), so I manually set the one rule to error and then run vale against the entire docset with a minimum level of error. Hacky, but gets the job done.

We'd definitely use this option if it were baked in. At times, we pick one rule and work on burning down the number of results for just that one rule.

amyq avatar Nov 30 '22 20:11 amyq

This is possible now in v2.23.0.

jdkato avatar Feb 11 '23 19:02 jdkato