Skip to content

Commit 1f46d0a

Browse files
committed
feat(lint/license): Detect more license
1 parent eb72834 commit 1f46d0a

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

lisp/lint/license.el

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@
4444
(insert content))
4545
;; See https://api.github.com/licenses
4646
(cond
47+
((eask--string-match-all
48+
'("Licensed under the Academic Free License version 3.0"))
49+
'("afl-3.0" "Academic Free License v3.0" "AFL-3.0"))
4750
((eask--string-match-all
4851
'("You should have received a copy of the GNU Affero General Public License"))
4952
'("agpl-3.0" "GNU Affero General Public License v3.0" "AGPL-3.0"))
53+
((eask--string-match-all
54+
'("Everyone is permitted to copy and distribute verbatim copies"
55+
"but changing it is not allowed."
56+
"artistic"))
57+
'("artistic-2.0" "Artistic License 2.0" "Artistic-2.0"))
5058
((eask--string-match-all
5159
'("Licensed under the Apache License, Version 2.0"))
5260
'("apache-2.0" "Apache License 2.0" "Apache-2.0"))
@@ -61,7 +69,8 @@
6169
((eask--string-match-all
6270
'("Permission is hereby granted, free of charge, to any person or organization"))
6371
'("bsl-1.0" "Boost Software License 1.0" "BSL-1.0"))
64-
((eask--string-match-all '("CC0 1.0"))
72+
((eask--string-match-all
73+
'("The laws of most jurisdictions throughout the world automatically confer exclusive Copyright"))
6574
'("cc0-1.0" "Creative Commons Zero v1.0 Universal" "CC0-1.0"))
6675
((eask--string-match-all
6776
'("Eclipse Public License - v 2.0"
@@ -81,18 +90,37 @@
8190
((eask--string-match-all
8291
'("Permission to use, copy, modify, and/or distribute this"))
8392
'("isc" " Internet Systems Consortium" "ISC"))
84-
((eask--string-match-all '("Lesser GPL"
85-
"Version 2.1"))
93+
((eask--string-match-all
94+
'("Lesser"
95+
"GNU"
96+
"version 2"))
8697
'("lgpl-2.1" "GNU Lesser General Public License v2.1" "LGPL-2.1"))
98+
((eask--string-match-all
99+
'("This license governs use of the accompanying software."
100+
"If you use the software, you accept this license."
101+
"If you do not accept the license, do not use the software."))
102+
'("ms-pl" "Microsoft Public License" "MS-PL"))
87103
((eask--string-match-all
88104
'("Permission is hereby granted, free of charge, to any person"))
89105
'("mit" "MIT License" "MIT"))
90106
((eask--string-match-all
91107
'("http://mozilla.org/MPL/2.0/"))
92108
'("mpl-2.0" "Mozilla Public License 2.0" "MPL-2.0"))
109+
((eask--string-match-all
110+
'("Licensed under the Open Software License version 3.0"))
111+
'("osl-3.0" "Open Software License 3.0" "OSL-3.0"))
93112
((eask--string-match-all
94113
'("This is free and unencumbered software released into"))
95114
'("unlicense" "The Unlicense" "Unlicense"))
115+
((eask--string-match-all
116+
'("Everyone is permitted to copy and distribute verbatim copies"))
117+
'("wtfpl-1" "Do What the Fuck You Want To Public License (Version 1)" "WTFPL-1"))
118+
((eask--string-match-all
119+
'("Everyone is permitted to copy and distribute verbatim or modified"))
120+
'("wtfpl-2" "Do What the Fuck You Want To Public License (Version 2)" "WTFPL-2"))
121+
((eask--string-match-all
122+
'("Permission is granted to anyone to use this software for any purpose,"))
123+
'("zlib" "zlib License" "Zlib"))
96124
(t
97125
'("unknown" "Unknown license" "unknown")))))
98126

0 commit comments

Comments
 (0)