-
-
Notifications
You must be signed in to change notification settings - Fork 596
fix include functionality #2395
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
Conversation
@tardyp Thank you ++ for this! A test should be something to add in https://github.com/nexB/scancode-toolkit/blob/develop/tests/scancode/test_plugin_ignore.py |
@tardyp you can also see some of the failing tests here:
And the trace details:
So this should give a good idea of where to look.
|
When using --include on files, the directories get excluded. removing those ressource end up in removing also the nested files The include exclude algorithm makes it quite difficult to support ignoring a whole directory by just saying ignore=path/to/dir In this version, we support that usecase with ignore=path/to/dir/* Signed-off-by: Pierre Tardy <[email protected]>
hi @pombredanne Sorry it took so long to update this. I updated the patch and fixed the tests. I am not completely happy with the results as it this algorithm is not supporting the same features. The include exclude algorithm makes it quite difficult to support ignoring a whole directory by just saying ignore=path/to/dir
Let me know if you find this acceptable, I'll add a changelog describing this api change. |
@pombredanne kindly ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks you++
Looking great!
When using --include on files, the directories get excluded.
removing those ressource end up in removing also the
nested files
Not sure exactly which test suite I have to fix.
Would be glad to get some help on this.
Fixes #2059
Tasks
Run tests locally to check for errors.