Support .gitignore
It'd be great if paths defined in .gitignore (or possible a dedicated .mispellignore) could be ignored, so I can run misspell * without the tool venturing into my node_modules or it checking other untracked files.
oh interesting idea @silverwind
It's on my list. It's the #1 feature request "How I can exclude files"
in the meantime, if you can, you can do something like this
find . -name '*whatever*' -type f | grep -v IGNORE1 | grep -v IGNORE2 | xargs misspell
I know that's gross. But might help in short term. Ping me if you need help.
regards,
n
Thanks. For now I'll just use multiple globs to target only the files that I care about. It's probably also possible to exclude paths with extended shell globs, but that's getting pretty esoteric.
Note to me: https://git-scm.com/docs/gitignore
Is this still being worked on?
For anyone stumbling upon this, this command should work for you.
git ls-files | xargs misspell