Parcourir la source

[frontend] Add Python-2.0 as valid npm license

From https://www.npmjs.com/package/argparse
Johan Åhlén il y a 4 ans
Parent
commit
ed403a4e43
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      tools/license/checkLicenses.js

+ 2 - 1
tools/license/checkLicenses.js

@@ -41,7 +41,8 @@ checker.init(
           lowerLicenses.indexOf('apache') === -1 &&
           lowerLicenses.indexOf('isc') === -1 &&
           lowerLicenses.indexOf('unlicense') === -1 &&
-          lowerLicenses.indexOf('cc') === -1
+          lowerLicenses.indexOf('cc') === -1 &&
+          lowerLicenses.indexOf('python-2.0') === -1
         ) {
           console.warn(`Found invalid license in "${packageName}", license: "${licenses}".`);
           process.exitCode = 1;