Skip to content
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

Error for not matching SPDX Tag and SPDX License File #51

Closed
ant-u opened this issue Feb 26, 2024 · 0 comments · Fixed by #54
Closed

Error for not matching SPDX Tag and SPDX License File #51

ant-u opened this issue Feb 26, 2024 · 0 comments · Fixed by #54
Assignees

Comments

@ant-u
Copy link
Collaborator

ant-u commented Feb 26, 2024

(Reference test case: test_pkg_wrong_license_file)

If package.xml has a SPDX conform tag and references an SPDX conform license file that holds the text of another license, this is only a warning. Convert this case to an error.

LicenseTagExistsCheck
 SUCCESS Found licenses ['BSD-3-Clause']
LicenseTagIsInSpdxListCheck
 SUCCESS All license tags are in SPDX list of licenses.
LicenseTextExistsCheck
 WARNING Since they are not in the SPDX list, we can not check if these tags have the correct license text:
  'BSD-3-Clause': License text file 'LICENSE' is of license Apache-2.0 but tag is BSD-3-Clause.
LicensesInCodeCheck
 SUCCESS All licenses found in the code are covered by a license declaration.
--------------------
[test_pkg_wrong_license_file] Overall:
 WARNING
====================
Execution time: 0.06 seconds
All packages:
 WARNING
@ant-u ant-u self-assigned this Feb 27, 2024
@ant-u ant-u linked a pull request Mar 12, 2024 that will close this issue
@ant-u ant-u closed this as completed in #54 Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant