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"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "gender_female.svg",
|
||||
"license": "CC0",
|
||||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "gender_female.svg",
|
||||
"license": "CC0",
|
||||
|
@ -525,12 +519,6 @@
|
|||
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "gender_male.svg",
|
||||
"license": "CC0",
|
||||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "gender_male.svg",
|
||||
"license": "CC0",
|
||||
|
@ -551,12 +539,6 @@
|
|||
"https://www.iconpacks.net/free-icon-pack/gender-107.html"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "gender_trans.svg",
|
||||
"license": "CC0",
|
||||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "gender_trans.svg",
|
||||
"license": "CC0",
|
||||
|
@ -891,7 +873,7 @@
|
|||
},
|
||||
{
|
||||
"path": "none.svg",
|
||||
"license": "CC0",
|
||||
"license": "trivial",
|
||||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
|
|
|
@ -13,8 +13,13 @@
|
|||
{
|
||||
"path": "car.svg",
|
||||
"license": "CC0",
|
||||
"authors": [],
|
||||
"sources": []
|
||||
"authors": [
|
||||
"Simon Child",
|
||||
"The Noun Project"
|
||||
],
|
||||
"sources": [
|
||||
"https://thenounproject.com/icon/electric-car-55511/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "logo.svg",
|
||||
|
|
|
@ -282,11 +282,16 @@ function main(args: string[]) {
|
|||
|
||||
let invalid = 0
|
||||
for (const licenseInfo of licenseInfos) {
|
||||
|
||||
if(licenseInfo.sources.length + licenseInfo.authors.length == 0){
|
||||
const isTrivial =
|
||||
licenseInfo.license
|
||||
.split(";")
|
||||
.map((l) => l.trim().toLowerCase())
|
||||
.indexOf("trivial") >= 0
|
||||
if (licenseInfo.sources.length + licenseInfo.authors.length == 0 && !isTrivial) {
|
||||
invalid++
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue