-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Scancode reports on "originally licensed under X" as if it's a license notice #1794
Comments
Hi Martin! Thank you for this report. Comments about licenses are always tougher ones: (for the record there is also two MIT references in the same file, detected alright)... There are two ways to deal with this:
Both ways work: usually negative is better for short non-license related words such as some thing that refers to https://www.gpl.com. False positive is better when there is some license related words that may be about a license in a large context and not about a license in a more specific context. BTW I see that you use |
This rule is from a scan of https://github.com/gettalong/kramdown/. Specifically, the README notes that it was originally GPL licensed. This blurb should not actually be matched.
This rule is from a scan of https://github.com/gettalong/kramdown/. Specifically, the README notes that it was originally GPL licensed. This blurb should not actually be matched. Signed-off-by: Martin Petkov <mpetkov@google.com>
Thank you for the in-depth explanation! I've tried my hand at fixing it and opened #1797. When I run the reproducing steps above, I correctly no longer see gpl-1.0-plus in the results. Let me know if that's acceptable. You're right about the old version, I hadn't run |
Add new rule for GPL historical note #1794
This rule is from a scan of https://github.com/gettalong/kramdown/. Specifically, the README notes that it was originally GPL licensed. This blurb should not actually be matched. Signed-off-by: Martin Petkov <mpetkov@google.com>
Description
Not sure if this is a "bug" or if there's any good way to solve it short of embedding an NLP parser, but it's at least an edge case. In https://github.com/gettalong/kramdown/blob/179b81dcf057f8079fd9df5296ba858114d30f7a/README.md, there's this text:
Try scanning it:
You see this:
It (correctly imo) zeroes in on the "licensed under..." text, but it would be nice if it could take into account context and ignore this particular blurb. I understand if it's not feasible, but wanted to bring it up.
System configuration
For bug reports, it really helps us to know:
Linux
ScanCode version 3.0.2.post1114.8b6916601
pip
The text was updated successfully, but these errors were encountered: