Skip to content
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

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

Closed
MLNW opened this issue Aug 5, 2022 · 3 comments
Closed

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

MLNW opened this issue Aug 5, 2022 · 3 comments

Comments

@MLNW
Copy link

MLNW commented Aug 5, 2022

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.

@jdkato
Copy link
Member

jdkato commented Aug 9, 2022

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.

@amyq
Copy link

amyq commented Nov 30, 2022

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.

@jdkato
Copy link
Member

jdkato commented Feb 11, 2023

This is possible now in v2.23.0.

@jdkato jdkato closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants