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

Support .gitignore #115

Open
silverwind opened this issue Jun 14, 2017 · 6 comments
Open

Support .gitignore #115

silverwind opened this issue Jun 14, 2017 · 6 comments

Comments

@silverwind
Copy link

silverwind commented Jun 14, 2017

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.

@client9
Copy link
Owner

client9 commented Jun 14, 2017

oh interesting idea @silverwind

It's on my list. It's the #1 feature request "How I can exclude files"

@client9
Copy link
Owner

client9 commented Jun 14, 2017

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

@silverwind
Copy link
Author

silverwind commented Jun 15, 2017

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.

@client9
Copy link
Owner

client9 commented Jun 18, 2017

Note to me: https://git-scm.com/docs/gitignore

@nektro
Copy link

nektro commented Feb 27, 2020

Is this still being worked on?

@CathalMullan
Copy link

For anyone stumbling upon this, this command should work for you.

git ls-files | xargs misspell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants