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

Add option to verify that contents of the license file is valid #1107

Open
sorairolake opened this issue Nov 20, 2024 · 1 comment
Open

Add option to verify that contents of the license file is valid #1107

sorairolake opened this issue Nov 20, 2024 · 1 comment

Comments

@sorairolake
Copy link
Contributor

I think it would be useful if reuse lint has an option to verify that contents of the license file is valid.

This means that an error will be returned in the following cases:

  • GPL-3.0-or-later.txt is an empty license file.
  • The contents of Apache-2.0.txt is MPL-2.0.

However, I think this feature should be an option since it's not always possible to correctly guess the contents of the license file.

@silverhook
Copy link
Contributor

I think this is a great idea!

Just yesterday I ran into a surprise whereupon reuse download --all, I ended up with two empty license files in the LICENSES/ folder.

However, I think this feature should be an option since it's not always possible to correctly guess the contents of the license file.

I’ve half a mind that it would make sense to enable it by default.

Any licenses that do not start with LicenseRef- are by definition part of the SPDX License List and correspond to the canonical plaintext versions from https://github.com/spdx/license-list-data/tree/main/text. So testing that (or with more work even against the templates) should be doable, I think.

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

No branches or pull requests

2 participants