-
I am running cspell in a pre-commit hook like this.
This works fine until a remix route file
I have tried to escape the parentheses and the dollar sign, but no success. bash cmd:
but replacing the bash cmd:
Am i doing something wrong with how i escape the characters? reproduction repo: https://github.com/madostFKA/cspellbug |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I can see the confusion. By default, The
or you can use a file list file |
Beta Was this translation helpful? Give feedback.
@madostFKA,
I can see the confusion. By default,
cspell
works with globs, not file paths.()
has special meaning in a glob.The
file://
prefix tells the spell checker to assume it is a file.or you can use a file list file
--file-list file-with-list-of-files-to-check.txt
or you can pipe it:
echo "test/(\$hello)/files/text.txt" | cspell --file-list stdin