-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
Handle negative gitignore patterns correctly #195
Conversation
* split out getGitIgnores from getIgnores * adapt test cases accordingly * extend gitignore test case with negative pattern * invert gitignore patterns and feed sotred as glob instead of opts.ignore fix #154
Yay! Thanks for fixing this. It's been eating at me for a long time. |
@schnittstabil @JonnyBurger I already merged this as it looks good to me, but your review would still be welcome :) |
@marionebl Thanks for exploring this. Hmm, as far as I can see, negative
xo.lintFiles('foo.js'); // will lint 'bar.js', won't it? |
@schnittstabil @marionebl You are right, I was able to reproduce the bug you described. |
fix #154