Fix bug in filter-clues plugin - #2353
Conversation
905717b to
1eda1dd
Compare
|
|
||
|
|
||
| @pytest.mark.xfail(reason='Bug is not fixed yet') | ||
|
|
There was a problem hiding this comment.
A nitpick, keep only one new line between methods and two new lines between functions and classes.
|
@tushar912 Does The 2 failing tests seem to be from other problems that are fixed in the release branch. |
|
Also, could you change the commit message according to this doc - https://aboutcode.readthedocs.io/en/latest/contributing/writing_good_commit_messages.html So,
|
10d3a63 to
0f2765f
Compare
|
@AyanSinhaMahapatra I think it is working I am getting this json output |
|
@tushar912 @AyanSinhaMahapatra what's left to do here? I would like to merge this ASAP :) |
There was a problem hiding this comment.
@pombredanne I've tested this branch locally, the bug isn't there anymore, the test reproducing the earlier bug passes (the test fails are from other problems fixed in the release branch), and the plugin seems to be doing everything as it should, i.e. removing redundant duplicated clues already contained in detected license and copyright texts and notices. It seems ready to merge to me, but you should still check the changes to see everything is in place.
But the commit message has to be changed as it seems to have leftovers from squashing two commits together, having two bodies, and two signoffs. @tushar912
|
@AyanSinhaMahapatra I have changed the commit message .I think it looks better now. |
|
Another nitpick, adding the issue number on the commit header/body would be best. Just add |
fixed bug by using hasattr check on the resource object and returning empty ignorables if not detections.licenses Signed-off-by: Tushar912 <tushar.912u@gmail.com>
|
@AyanSinhaMahapatra I have made the change. |
|
@AyanSinhaMahapatra please go ahead and merge |
|
@tushar912 Thank you ++ 🙇 |
Fixes #1758
Tasks
Run tests locally to check for errors.