-
Notifications
You must be signed in to change notification settings - Fork 141
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
Lint does not report missing license #286
Comments
Hah, try removing the AGPL license and you'll see that it works ;) Actually, you project does not use CC-BY-SA-4.0 in any file, so removing it doesn't change something. So in the end, you can into the same problem as in #285. |
Removing the AGPL license does trigger a missing license error, yes. My beef is with removing the CC-BY-SA-4.0 license, which, contrary to your comment, is used in I copied 🔍 👀 Found it! It's in _IGNORE_FILE_PATTERNS = [
re.compile(r"^LICENSE"),
re.compile(r"^COPYING"), While I can understand the desire to use these file ignore patterns, my 🤔 Is there a way to override the ignore patterns for specific files? Should the pattern be anchored? Should the check for missing licenses consider all files with an BTW, I'm using the |
Ah, I didn't see the LICENSE.md file. Indeed, it's not checked by the tool because it's considered to contain a license text (which per definition is excluded from the obligation to contain copyright and licensing info). We conciously abstained from demanding to state the license and copyright of license texts. On the one hand, because this sometimes is a tricky question – ask 3 lawyers, you will get 5 opinions, and a huge discussion whether licenses are actually copyrightable. On the other hand, we'd run into practical problems, as not all license text licenses have SPDX identifiers.
Not for these files at the moment. Because the ignore pattern list is quite short, I'd also like to keep it that way to reduce complexity.
I quite like the short list of exceptions in the REUSE spec. Of course, the assumption that a file name starting with
That's indeed the recommendation I'd also give to you. LICENSE/COPYING is a rather reserved file name which many tools look for, so a rename, perhaps even clearer (LICENSE-SITUATION.md), might make sense in the long run. |
Thanks for thinking along and pointing to the documentation for ignored files. My problem probably was that I interpreted "The License files" as As for copyrightability of licenses, the FSF clearly thinks you can (or at least try to). Just look at the GPL, any version 😉 |
I noticed that removing
LICENSES/CC-BY-SA-4.0.txt
did not result in this license being reported as missing. This despite the license being used in the front matter of my project'sLICENSE.md
file.This was tested against the same project and project state as reported in #285.
The text was updated successfully, but these errors were encountered: