fix(license): categorize MIT-0 as unencumbered (#11498)

This commit is contained in:
Nikita Pivkin authored and GitHub committed 2026-11-03 11:50:05 +00:00
1 parent d8890eeda0
commit 4918c342b0
4 files changed
+13

No files matched your search

@@ -375,6 +375,7 @@ license:
- CC0-1.0
- Unlicense
- 0BSD
- MIT-0
```
## Misconfiguration options
+1
View File
@@ -338,6 +338,7 @@ license:
- CC0-1.0
- Unlicense
- 0BSD
- MIT-0
permissive: []
```
+2
View File
@@ -126,6 +126,7 @@ const (
LPL102 = "LPL-1.02"
LPL10 = "LPL-1.0"
MIT = "MIT"
MIT0 = "MIT-0"
MPL10 = "MPL-1.0"
MPL11 = "MPL-1.1"
MPL20 = "MPL-2.0"
@@ -367,6 +368,7 @@ var (
CC010,
Unlicense,
ZeroBSD,
MIT0,
}
)
+9
View File
@@ -30,6 +30,15 @@ func TestScanner_Scan(t *testing.T) {
wantCategory: types.CategoryForbidden,
wantSeverity: "CRITICAL",
},
{
name: "default unencumbered licenses",
categories: map[types.LicenseCategory][]string{
types.CategoryUnencumbered: expression.UnencumberedLicenses,
},
licenseName: "MIT-0",
wantCategory: types.CategoryUnencumbered,
wantSeverity: "LOW",
},
{
name: "has plus",
categories: map[types.LicenseCategory][]string{