Skip to content

Commit 391fe71

Browse files
committed
declared-license-mapping: Remove conflicting BSD license mappings
It does not make sense to map "BSD License" and "The BSD License" differently. In fact, the version cannot be told in either case. So simply remove both mappings. As an example why the version cannot be assumed, take [1] where "The BSD License" is supposed to mean BSD-3-Clause instead of BSD-2-Clause. [1] https://repo1.maven.org/maven2/org/antlr/antlr4-master/4.7.1/antlr4-master-4.7.1.pom Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent d3b4518 commit 391fe71

9 files changed

+54
-53
lines changed

analyzer/src/funTest/assets/projects/external/example-python-flask-expected-output.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ packages:
3535
- "BSD-3-Clause"
3636
declared_licenses_processed:
3737
spdx_expression: "BSD-3-Clause"
38-
mapped:
39-
BSD License: "BSD-3-Clause"
38+
unmapped:
39+
- "BSD License"
4040
description: "Composable command line interface toolkit"
4141
homepage_url: "https://palletsprojects.com/p/click/"
4242
binary_artifact:
@@ -70,7 +70,8 @@ packages:
7070
spdx_expression: "BSD-3-Clause"
7171
mapped:
7272
BSD: "BSD-3-Clause"
73-
BSD License: "BSD-3-Clause"
73+
unmapped:
74+
- "BSD License"
7475
description: "A microframework based on Werkzeug, Jinja2 and good intentions"
7576
homepage_url: "http://github.com/pallets/flask/"
7677
binary_artifact:
@@ -137,7 +138,8 @@ packages:
137138
spdx_expression: "BSD-3-Clause"
138139
mapped:
139140
BSD: "BSD-3-Clause"
140-
BSD License: "BSD-3-Clause"
141+
unmapped:
142+
- "BSD License"
141143
description: "Various helpers to pass data to untrusted environments and back."
142144
homepage_url: "https://palletsprojects.com/p/itsdangerous/"
143145
binary_artifact:
@@ -171,7 +173,8 @@ packages:
171173
spdx_expression: "BSD-3-Clause"
172174
mapped:
173175
BSD: "BSD-3-Clause"
174-
BSD License: "BSD-3-Clause"
176+
unmapped:
177+
- "BSD License"
175178
description: "A small but fast and easy to use stand-alone template engine written\
176179
\ in pure python."
177180
homepage_url: "http://jinja.pocoo.org/"
@@ -204,8 +207,8 @@ packages:
204207
- "BSD-3-Clause"
205208
declared_licenses_processed:
206209
spdx_expression: "BSD-3-Clause"
207-
mapped:
208-
BSD License: "BSD-3-Clause"
210+
unmapped:
211+
- "BSD License"
209212
description: "Safely add untrusted strings to HTML/XML markup."
210213
homepage_url: "https://palletsprojects.com/p/markupsafe/"
211214
binary_artifact:
@@ -237,8 +240,8 @@ packages:
237240
- "BSD-3-Clause"
238241
declared_licenses_processed:
239242
spdx_expression: "BSD-3-Clause"
240-
mapped:
241-
BSD License: "BSD-3-Clause"
243+
unmapped:
244+
- "BSD License"
242245
description: "The comprehensive WSGI web application library."
243246
homepage_url: "https://palletsprojects.com/p/werkzeug/"
244247
binary_artifact:

analyzer/src/funTest/assets/projects/external/git-repo-expected-output.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,8 @@ analyzer:
407407
declared_licenses:
408408
- "BSD License"
409409
declared_licenses_processed:
410-
spdx_expression: "BSD-3-Clause"
411-
mapped:
412-
BSD License: "BSD-3-Clause"
410+
unmapped:
411+
- "BSD License"
413412
description: "A framework for constructing recognizers, compilers,\n and\
414413
\ translators from grammatical descriptions containing\n Java, C#, C++,\
415414
\ or Python actions."
@@ -697,9 +696,8 @@ analyzer:
697696
declared_licenses:
698697
- "BSD License"
699698
declared_licenses_processed:
700-
spdx_expression: "BSD-3-Clause"
701-
mapped:
702-
BSD License: "BSD-3-Clause"
699+
unmapped:
700+
- "BSD License"
703701
description: "Implementation of various mathematical curves that define themselves\
704702
\ over a set of control points. The API is written in Java. The curves supported\
705703
\ are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline, Lagrange,\

analyzer/src/funTest/assets/projects/external/jgnash-core-expected-output.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ packages:
7171
declared_licenses:
7272
- "BSD License"
7373
declared_licenses_processed:
74-
spdx_expression: "BSD-3-Clause"
75-
mapped:
76-
BSD License: "BSD-3-Clause"
74+
unmapped:
75+
- "BSD License"
7776
description: "A framework for constructing recognizers, compilers,\n and translators\
7877
\ from grammatical descriptions containing\n Java, C#, C++, or Python actions."
7978
homepage_url: "http://www.antlr.org/"
@@ -140,9 +139,8 @@ packages:
140139
declared_licenses:
141140
- "BSD License"
142141
declared_licenses_processed:
143-
spdx_expression: "BSD-3-Clause"
144-
mapped:
145-
BSD License: "BSD-3-Clause"
142+
unmapped:
143+
- "BSD License"
146144
description: "Implementation of various mathematical curves that define themselves\
147145
\ over a set of control points. The API is written in Java. The curves supported\
148146
\ are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline, Lagrange, Natural\

analyzer/src/funTest/assets/projects/external/spdx-tools-python-expected-output.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ packages:
4646
spdx_expression: "BSD-3-Clause"
4747
mapped:
4848
BSD: "BSD-3-Clause"
49-
BSD License: "BSD-3-Clause"
49+
unmapped:
50+
- "BSD License"
5051
description: "An ISO 8601 date/time/duration parser and formatter"
5152
homepage_url: "https://github.com/gweis/isodate/"
5253
binary_artifact:
@@ -142,8 +143,8 @@ packages:
142143
- "BSD-3-Clause"
143144
declared_licenses_processed:
144145
spdx_expression: "BSD-3-Clause"
145-
mapped:
146-
BSD License: "BSD-3-Clause"
146+
unmapped:
147+
- "BSD License"
147148
description: "RDFLib is a Python library for working with RDF, a simple yet powerful\
148149
\ language for representing information."
149150
homepage_url: "https://github.com/RDFLib/rdflib"

analyzer/src/funTest/assets/projects/synthetic/pip-expected-output.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ packages:
3838
declared_licenses:
3939
- "BSD License"
4040
declared_licenses_processed:
41-
spdx_expression: "BSD-3-Clause"
42-
mapped:
43-
BSD License: "BSD-3-Clause"
41+
unmapped:
42+
- "BSD License"
4443
description: "A simple wrapper around optparse for powerful command line utilities."
4544
homepage_url: "http://github.com/mitsuhiko/click"
4645
binary_artifact:
@@ -74,7 +73,8 @@ packages:
7473
spdx_expression: "BSD-3-Clause"
7574
mapped:
7675
BSD: "BSD-3-Clause"
77-
BSD License: "BSD-3-Clause"
76+
unmapped:
77+
- "BSD License"
7878
description: "A simple framework for building complex web applications."
7979
homepage_url: "https://www.palletsprojects.com/p/flask/"
8080
binary_artifact:
@@ -104,9 +104,8 @@ packages:
104104
declared_licenses:
105105
- "BSD License"
106106
declared_licenses_processed:
107-
spdx_expression: "BSD-3-Clause"
108-
mapped:
109-
BSD License: "BSD-3-Clause"
107+
unmapped:
108+
- "BSD License"
110109
description: "Various helpers to pass trusted data to untrusted environments and\
111110
\ back."
112111
homepage_url: "http://github.com/mitsuhiko/itsdangerous"
@@ -139,8 +138,8 @@ packages:
139138
- "BSD-3-Clause"
140139
declared_licenses_processed:
141140
spdx_expression: "BSD-3-Clause"
142-
mapped:
143-
BSD License: "BSD-3-Clause"
141+
unmapped:
142+
- "BSD License"
144143
description: "A very fast and expressive template engine."
145144
homepage_url: "https://palletsprojects.com/p/jinja/"
146145
binary_artifact:
@@ -174,7 +173,8 @@ packages:
174173
spdx_expression: "BSD-3-Clause"
175174
mapped:
176175
BSD: "BSD-3-Clause"
177-
BSD License: "BSD-3-Clause"
176+
unmapped:
177+
- "BSD License"
178178
description: "Implements a XML/HTML/XHTML Markup safe string for Python"
179179
homepage_url: "http://github.com/pallets/markupsafe"
180180
binary_artifact:
@@ -206,8 +206,8 @@ packages:
206206
- "BSD-3-Clause"
207207
declared_licenses_processed:
208208
spdx_expression: "BSD-3-Clause"
209-
mapped:
210-
BSD License: "BSD-3-Clause"
209+
unmapped:
210+
- "BSD License"
211211
description: "The comprehensive WSGI web application library."
212212
homepage_url: "https://palletsprojects.com/p/werkzeug/"
213213
binary_artifact:

analyzer/src/funTest/assets/projects/synthetic/pip-python3-expected-output.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ packages:
3434
spdx_expression: "BSD-3-Clause"
3535
mapped:
3636
BSD: "BSD-3-Clause"
37-
BSD License: "BSD-3-Clause"
37+
unmapped:
38+
- "BSD License"
3839
description: "A high-level Python Web framework that encourages rapid development\
3940
\ and clean, pragmatic design."
4041
homepage_url: "https://www.djangoproject.com/"
@@ -100,8 +101,8 @@ packages:
100101
- "BSD-3-Clause"
101102
declared_licenses_processed:
102103
spdx_expression: "BSD-3-Clause"
103-
mapped:
104-
BSD License: "BSD-3-Clause"
104+
unmapped:
105+
- "BSD License"
105106
description: "A non-validating SQL parser."
106107
homepage_url: "https://github.com/andialbrecht/sqlparse"
107108
binary_artifact:

analyzer/src/funTest/assets/projects/synthetic/pipenv-expected-output.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ packages:
3434
declared_licenses:
3535
- "BSD License"
3636
declared_licenses_processed:
37-
spdx_expression: "BSD-3-Clause"
38-
mapped:
39-
BSD License: "BSD-3-Clause"
37+
unmapped:
38+
- "BSD License"
4039
description: "A simple wrapper around optparse for powerful command line utilities."
4140
homepage_url: "http://github.com/mitsuhiko/click"
4241
binary_artifact:
@@ -70,7 +69,8 @@ packages:
7069
spdx_expression: "BSD-3-Clause"
7170
mapped:
7271
BSD: "BSD-3-Clause"
73-
BSD License: "BSD-3-Clause"
72+
unmapped:
73+
- "BSD License"
7474
description: "A simple framework for building complex web applications."
7575
homepage_url: "https://www.palletsprojects.com/p/flask/"
7676
binary_artifact:
@@ -100,9 +100,8 @@ packages:
100100
declared_licenses:
101101
- "BSD License"
102102
declared_licenses_processed:
103-
spdx_expression: "BSD-3-Clause"
104-
mapped:
105-
BSD License: "BSD-3-Clause"
103+
unmapped:
104+
- "BSD License"
106105
description: "Various helpers to pass trusted data to untrusted environments and\
107106
\ back."
108107
homepage_url: "http://github.com/mitsuhiko/itsdangerous"
@@ -137,7 +136,8 @@ packages:
137136
spdx_expression: "BSD-3-Clause"
138137
mapped:
139138
BSD: "BSD-3-Clause"
140-
BSD License: "BSD-3-Clause"
139+
unmapped:
140+
- "BSD License"
141141
description: "A small but fast and easy to use stand-alone template engine written\
142142
\ in pure python."
143143
homepage_url: "http://jinja.pocoo.org/"
@@ -172,7 +172,8 @@ packages:
172172
spdx_expression: "BSD-3-Clause"
173173
mapped:
174174
BSD: "BSD-3-Clause"
175-
BSD License: "BSD-3-Clause"
175+
unmapped:
176+
- "BSD License"
176177
description: "Implements a XML/HTML/XHTML Markup safe string for Python"
177178
homepage_url: "http://github.com/pallets/markupsafe"
178179
binary_artifact:
@@ -204,8 +205,8 @@ packages:
204205
- "BSD-3-Clause"
205206
declared_licenses_processed:
206207
spdx_expression: "BSD-3-Clause"
207-
mapped:
208-
BSD License: "BSD-3-Clause"
208+
unmapped:
209+
- "BSD License"
209210
description: "The comprehensive WSGI web application library."
210211
homepage_url: "https://palletsprojects.com/p/werkzeug/"
211212
binary_artifact:

analyzer/src/funTest/assets/projects/synthetic/pipenv-python3-expected-output.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ packages:
3333
spdx_expression: "BSD-3-Clause"
3434
mapped:
3535
BSD: "BSD-3-Clause"
36-
BSD License: "BSD-3-Clause"
36+
unmapped:
37+
- "BSD License"
3738
description: "A high-level Python Web framework that encourages rapid development\
3839
\ and clean, pragmatic design."
3940
homepage_url: "https://www.djangoproject.com/"

spdx-utils/src/main/resources/declared-license-mapping.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"BSD Licence 3": BSD-3-Clause
8080
"BSD License 3": BSD-3-Clause
8181
"BSD License for HSQL": BSD-3-Clause
82-
"BSD License": BSD-3-Clause
8382
"BSD New license": BSD-3-Clause
8483
"BSD New": BSD-3-Clause
8584
"BSD Three Clause License": BSD-3-Clause
@@ -389,7 +388,6 @@
389388
"The Apache Software License, Version 2.0": Apache-2.0
390389
"The BSD 2-Clause License": BSD-2-Clause
391390
"The BSD 3-Clause License": BSD-3-Clause
392-
"The BSD License": BSD-2-Clause
393391
"The BSD Software License": BSD-2-Clause
394392
"The Eclipse Public License Version 1.0": EPL-1.0
395393
"The Eclipse Public License Version 2.0": EPL-2.0

0 commit comments

Comments
 (0)