-
-
Notifications
You must be signed in to change notification settings - Fork 35
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 License and SPDX-License-Identifier headers #209
base: master
Are you sure you want to change the base?
Conversation
cc @tarsius who is very experienced with elisp licensing |
Extremely important.
|
I've also worked on this a bit over the weekend. The Emacsmirror/
https://emacsmirror.net/stats/licenses.html#orgaf6e078 is another list (it also includes non-spdx identifiers and I just noticed that ZLIB has to be normalized to Zlib. There may be other issues like that. |
Nice, @lassik! Agree with @tarsius that we should ideally recognise the recommended GPL boilerplate typically inserted by Beyond that,
Sure, either that or |
OK, GPL and LGPL boilerplate detection now added. There are probably subtle bugs in it, but seems to work. |
The current code needs a Things would be easier for us on all fronts if we could require that header to always be present. Is there any harm from adding it, apart from the fact that GNU doesn't require it? The number of people using weird licenses not in SPDX is probably tiny. |
The current code in this PR doesn't check for absence of But the |
@tarsius Thanks for your work on https://emacsmirror.net/stats/licenses.html. Isn't |
Most of those are probably due to I suspect that most of the authors who only use a license file do so because adding the permission statement is "unnecessary, noisy and ugly". Many would probably not object to |
Could we convince GNU to bless |
I don't know about GNU and the FSF, but maybe emacs-devel. The former two surely are already aware of SPDX and so far they have not embraced it. But maybe the stars would be aligned if you brought it up now. Such things usually take a few attempts. (I would focus on just emacs-devel though.) |
Implements issue #83
Here's a first cut of the linter. Rules very much subject to debate:
SPDX-License-Identifier:
header? I'd say it's okay because it's just a warning.License:
is a non-standard header (even in Emacs) whereasSPDX-License-Identifier:
is used by Linux and FreeBSD among many other projects, so if some license header is to be standardized, the latter would make more sense.This patch doesn't detect the presence or absence of the GPL boilerplate in the headers. How important is that?