Add more licenses, ignore 'trivial' items
This commit is contained in:
parent
6c5aef1aaa
commit
ca11e793f4
3 changed files with 16 additions and 24 deletions
|
@ -499,12 +499,6 @@
|
||||||
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "gender_female.svg",
|
|
||||||
"license": "CC0",
|
|
||||||
"authors": [],
|
|
||||||
"sources": []
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "gender_female.svg",
|
"path": "gender_female.svg",
|
||||||
"license": "CC0",
|
"license": "CC0",
|
||||||
|
@ -525,12 +519,6 @@
|
||||||
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "gender_male.svg",
|
|
||||||
"license": "CC0",
|
|
||||||
"authors": [],
|
|
||||||
"sources": []
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "gender_male.svg",
|
"path": "gender_male.svg",
|
||||||
"license": "CC0",
|
"license": "CC0",
|
||||||
|
@ -551,12 +539,6 @@
|
||||||
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "gender_trans.svg",
|
|
||||||
"license": "CC0",
|
|
||||||
"authors": [],
|
|
||||||
"sources": []
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "gender_trans.svg",
|
"path": "gender_trans.svg",
|
||||||
"license": "CC0",
|
"license": "CC0",
|
||||||
|
@ -891,7 +873,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "none.svg",
|
"path": "none.svg",
|
||||||
"license": "CC0",
|
"license": "trivial",
|
||||||
"authors": [],
|
"authors": [],
|
||||||
"sources": []
|
"sources": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,8 +13,13 @@
|
||||||
{
|
{
|
||||||
"path": "car.svg",
|
"path": "car.svg",
|
||||||
"license": "CC0",
|
"license": "CC0",
|
||||||
"authors": [],
|
"authors": [
|
||||||
"sources": []
|
"Simon Child",
|
||||||
|
"The Noun Project"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://thenounproject.com/icon/electric-car-55511/"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "logo.svg",
|
"path": "logo.svg",
|
||||||
|
|
|
@ -282,11 +282,16 @@ function main(args: string[]) {
|
||||||
|
|
||||||
let invalid = 0
|
let invalid = 0
|
||||||
for (const licenseInfo of licenseInfos) {
|
for (const licenseInfo of licenseInfos) {
|
||||||
|
const isTrivial =
|
||||||
if(licenseInfo.sources.length + licenseInfo.authors.length == 0){
|
licenseInfo.license
|
||||||
|
.split(";")
|
||||||
|
.map((l) => l.trim().toLowerCase())
|
||||||
|
.indexOf("trivial") >= 0
|
||||||
|
if (licenseInfo.sources.length + licenseInfo.authors.length == 0 && !isTrivial) {
|
||||||
invalid++
|
invalid++
|
||||||
invalidLicenses.push(
|
invalidLicenses.push(
|
||||||
"Invalid license: No sources nor authors given in the license for " + JSON.stringify(licenseInfo)
|
"Invalid license: No sources nor authors given in the license for " +
|
||||||
|
JSON.stringify(licenseInfo)
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue