-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
References to MIT / GPL dual-licensing not detected #257
Comments
@sschuberth Thanks. This is a data bug in the current develop or master branch warranting a new rule. |
#257 Detect dual mit or gpl in javascript
@sschuberth the latest commit fixes this in develop. Thank you ++ for reporting this! |
Thank a lot for the quick fix! I'll try out the develop branch, though I'm running into issue #259. |
Your fix basically seems to work, except that the GPL entry in the JSON report does not have the However, you probably could set |
Well, this is something that demands a little thoughts: in this very case, the syntax highlighter is under I was thinking in these cases to get away in the future from using a bare Also we have full support for license expressions in the making in a near future including the ability to reason about licenses equivalence. In that context, we may even get something better coming up. So short term, I am fine with |
I'd like to give this some more thought over the weekend. Because another issue is that |
The future parser for license expression is going to be based on https://github.com/bastikr/boolean.py that I co-maintain. It will be able to deal flexibly with any form of expressions including the |
Please see PR #261. |
@sschuberth #261 has been merged. Thank you! |
Thanks. I've verified it to be working as expected. So from my point of view this issue could be closed. The only thing that leaves me a bit concerned is that it seems as if your added rule is very specific, i.e. it needs to match the license text exactly. Isn't there a way to make the test at least slightly more generic WRT the wording? Or will all of that be part of the approximate license detection? |
@sschuberth Approximate license detection will be handling the fuzzy parts. I am planning to merge this in develop this week... hopefully! And as a general "rule" the more specific a rule is, the better. This sounds counter intuitive at first. But the general approach of approximate detection is an index-assisted sequence alignment kinda similar to BLAST or an inverted index-assisted diff. Exact matches will be found exactly and approximate matches are approximate ... but still found. Trying to guess what part should be "generic" works against the algorithm... so much so that I may drop entirely the need and the support for "templatized" rules parts with |
FWIW, the last task on approximate detection ATM for me is refining the tests and rule data: it detects so much better that there are a lot of tests that proved to be incomplete, where expectations were not comprehensive enough. |
issue fixed |
In the libjson package, the
sh*.css
andsh*.js
file sayIt's probably hard to detect as these are only references that do not include the license texts, but still it'd be great if ScanCode would detect these.
The text was updated successfully, but these errors were encountered: