Commit ba1a9bf
committed
feat(spdx-utils)!: Remove simple license mappings without matching digits
In order to remove the already identified ambiguous mappings, stricten
the check to require matching digits (disregarding trailing zeros) in keys
and values for each mapping.
This logic works for all ambiguous mappings except for `ALv2: Apache-2.0`,
which is now accepted as being non-ambiguous because "2.0" is reduced to
"2" which matches the digit in the key.
Additionally, this logic identified 12 previously "Non-ambiguous mappings"
to be in fact ambiguous because they have no or too little indication of
a version.
BREAKING CHANGE: Users who rely on the previous mappings need to create
package curations with respective `declaredLicenseMapping`s.
Signed-off-by: Sebastian Schuberth <[email protected]>1 parent 23a177b commit ba1a9bf
File tree
14 files changed
+54
-93
lines changed- plugins/package-managers
- cocoapods/src/funTest/assets/projects/synthetic
- node/src/funTest/assets/projects/synthetic
- npm
- pnpm
- yarn2
- yarn
- utils/spdx/src
- main/resources
- test/kotlin
14 files changed
+54
-93
lines changedLines changed: 14 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | | - | |
| 511 | + | |
| 512 | + | |
514 | 513 | | |
515 | 514 | | |
516 | 515 | | |
| |||
538 | 537 | | |
539 | 538 | | |
540 | 539 | | |
541 | | - | |
542 | | - | |
543 | | - | |
| 540 | + | |
| 541 | + | |
544 | 542 | | |
545 | 543 | | |
546 | 544 | | |
| |||
568 | 566 | | |
569 | 567 | | |
570 | 568 | | |
571 | | - | |
572 | | - | |
573 | | - | |
| 569 | + | |
| 570 | + | |
574 | 571 | | |
575 | 572 | | |
576 | 573 | | |
| |||
598 | 595 | | |
599 | 596 | | |
600 | 597 | | |
601 | | - | |
602 | | - | |
603 | | - | |
| 598 | + | |
| 599 | + | |
604 | 600 | | |
605 | 601 | | |
606 | 602 | | |
| |||
628 | 624 | | |
629 | 625 | | |
630 | 626 | | |
631 | | - | |
632 | | - | |
633 | | - | |
| 627 | + | |
| 628 | + | |
634 | 629 | | |
635 | 630 | | |
636 | 631 | | |
| |||
658 | 653 | | |
659 | 654 | | |
660 | 655 | | |
661 | | - | |
662 | | - | |
663 | | - | |
| 656 | + | |
| 657 | + | |
664 | 658 | | |
665 | 659 | | |
666 | 660 | | |
| |||
716 | 710 | | |
717 | 711 | | |
718 | 712 | | |
719 | | - | |
720 | | - | |
721 | | - | |
| 713 | + | |
| 714 | + | |
722 | 715 | | |
723 | 716 | | |
724 | 717 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 303 | + | |
| 304 | + | |
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 314 | + | |
| 315 | + | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 303 | + | |
| 304 | + | |
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 175 | + | |
| 176 | + | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
| 338 | + | |
| 339 | + | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 314 | + | |
| 315 | + | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
| 177 | + | |
| 178 | + | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 314 | + | |
| 315 | + | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
| 177 | + | |
| 178 | + | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
| |||
0 commit comments