errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.52k stars 155 forks source link

feature: Support multiple values for --glob flag #872

Closed dagardner-nv closed 4 months ago

dagardner-nv commented 4 months ago

Check for existing issues

Describe the feature

It would be nice to be able to specify the --glob flag multiple times with different values.

Assuming a structure similar to that presented in #254:

- content/
  - a.md
  - b/
    - b.md
  - c.md
  - d/
    - d.md

Assuming I want to lint everything under content/ except for the content/b/ and content/d/ sub-directories it would be nice to do:

vale --glob='!content/b/*' --glob='!content/d/*' ./content

Currently I have the ability to do --glob='!content/{b,d}/*' however this can get a bit unwieldy in the case of deep sub directory paths.

dagardner-nv commented 4 months ago

Closing, as I found a work-around and no longer need this feature.