-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
Surprising false positives of mit_or_gpl-3.0_17.RULE #3738
Labels
Comments
Thanks! |
Never mind ... I can see this too. PR welcomed! |
vasily-pozdnyakov
added a commit
to vasily-pozdnyakov/scancode-toolkit
that referenced
this issue
Apr 26, 2024
Signed-off-by: Vasily Pozdnyakov <[email protected]>
3 tasks
vasily-pozdnyakov
added a commit
to vasily-pozdnyakov/scancode-toolkit
that referenced
this issue
Apr 26, 2024
Signed-off-by: Vasily Pozdnyakov <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
With variations of the copyright header in the test file, the rule mit_or_gpl-3.0_17.RULE is matched for a file that is clearly MIT and Apache 2.0. The first line of the text is not marked as matched by the rule, but if not present will prevent the false positive.
How To Reproduce
Create the test file test.py with the following content:
Run any scancode 32, including the latest one, with the following flags:
-clpu --only-findings -n35 --license-text --verbose --json results.json ./test.py
The output, formatted, will look more or less (I've removed my system information) like this:
System configuration
The text was updated successfully, but these errors were encountered: