-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
License is not being detected #3997
Comments
@cgi-ricardo thanks for the report, this is a bug indeed. Note that we are able to detect the license correctly in the context of a package, where we extract license statements in the specific context of the package manifest and then scan that statement for licenses. But we also scan the package manfiest files (here the pom.xml) with a license scanner without using the context, as a whole file, and there we are getting false positives:
Note that we are also detecting that there is something wrong with the match and hence considering this as a clue instead of a detection, and so not reporting this in the resource license_expression too. But we can do better:
This detection issue is actually present in scancode-toolkit, so moving it there. Also attaching the scancode-toolkit scan results. |
Reference: aboutcode-org#3997 Signed-off-by: Alok Kumar <[email protected]>
Describe the bug
Running scancode for the following github package (https://github.com/stleary/JSON-java/tree/20230227), it doesn't detect the license inside the pom.xml file (https://github.com/stleary/JSON-java/blob/20230227/pom.xml)
System configuration
Expected behavior
Expect to detect the Public Domain license.
The text was updated successfully, but these errors were encountered: