errata-ai / vale

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

Glob flag not working as expected #824

Closed CollierCZ closed 1 month ago

CollierCZ commented 1 month ago

Check for existing issues

Environment

Describe the bug / provide steps to reproduce it

When I use the --glob flag, I don't get the files I expect. I do get them when it's not passed.

With flag:

vale --glob docs/conf/**/news/* 
✔ 0 errors, 0 warnings and 0 suggestions in 0 files.

Without flag:

vale docs/conf/**/news/* 
✔ 0 errors, 0 warnings and 0 suggestions in 186 files.

Running compgen -G "docs/conf/**/news/*" gives a list of 186 files, so I think the glob pattern should work.

If this is an issue with my understanding, sorry for the noise. Please just let me know what I should expect.