-
-
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
Wrong license detection in oauthlib #3512
Comments
Problem reproduced. @AyanSinhaMahapatra please investigate.
oauthlib-3.2.2.tar.gz_scan.json.zip Scan results attached. |
Reference: #3512 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Thanks @bennati for reporting the bug! This is indeed a misdetection, and should be fixed by adding a * required phrase * in the detected cdla-permissive-1.0_2.RULE, to make sure we don't misdetect from this rule anymore. We would also add a new bsd rule with the copyright part, just to also detect this better. See #3300 and #3254 which is WIP (and initial work done on this at #2637 previously), and should eliminate cases like these entirely, based on adding required phrases like this massively for all our 30k+ license rules. These are popping up more, so I'll have to bite the bullet here and go ahead with this sooner than later 😅 . Also @bennati we use all the license diagnostics options |
fixed, thanks @bennati ! |
Scancode detects license https://scancode-licensedb.aboutcode.org/cdla-permissive-1.0.html
in the file https://github.com/oauthlib/oauthlib/blob/master/oauthlib/__init__.py (line 9)
tested with scancode versions: 31.2.6 and 32.0.6
ran the command:
scancode ~/Downloads/__init__.py --copyright --license --info --strip-root --timeout 300 --json-pp ./o.json
contents of o.json:
The text was updated successfully, but these errors were encountered: