Explorar o código

[frontend] Add Python-2.0 as valid npm license

From https://www.npmjs.com/package/argparse
Johan Åhlén %!s(int64=4) %!d(string=hai) anos
pai
achega
ed403a4e43
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;