-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
scc
includes files that I've excluded via --not-match
#161
Comments
also doesn't handle this case:
for files named even
does not work... |
Oh that's annoying. So the issue is that the exclusion is only applying to the name of the directory/file and NOT the full path, which is what you are expecting. I can understand the confusion because the help text says,
which implies it would be the full path, however it is not. I think the thinking at the time was that generally this sort of case would be solved with either a .gitignore or .ignore file. That said it seems like it should be fixed. A patch which resolves the issue,
then gives the following output for your test case,
I am going to commit the change now e8ca7ea so if you build from master you will get it. I am then going to beef up the tests around this and ensure it gets rolled into the next release. |
ah, cool! i did not realize |
Yes the .ignore file is something I think I assume most people know about... but only those familiar with other tools might be. Ill add some documentation around it. |
Documentation added here 09448a6 |
Describe the bug
scc
includes files that I've excluded via--not-match
.To Reproduce
The output includes
schemas/_nsgroup.py
, despite being excluded via--not-match
.Expected behavior
schemas/_nsgroup.py
should not be included.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: