Skip to content

Commit 875e8b7

Browse files
alan-agius4clydin
authored andcommitted
refactor: rename licensesWhitelist to allowedLicenses
1 parent 7c96fdd commit 875e8b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/validate-licenses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const spdxSatisfies = require('spdx-satisfies');
2525
* - Public Domain
2626
* Same as CC0, it is not a valid license.
2727
*/
28-
const licensesWhitelist = [
28+
const allowedLicenses = [
2929
// Regular valid open source licenses supported by Google.
3030
'MIT',
3131
'ISC',
@@ -114,7 +114,7 @@ export default function (_options: {}, logger: logging.Logger): Promise<number>
114114
.map(x => x.replace(/\*$/, ''))
115115
.map(x => x in licenseReplacements ? licenseReplacements[x] : x),
116116
}))
117-
.filter(pkg => !_passesSpdx(pkg.licenses, licensesWhitelist))
117+
.filter(pkg => !_passesSpdx(pkg.licenses, allowedLicenses))
118118
.filter(pkg => !ignoredPackages.find(ignored => ignored === pkg.id));
119119

120120
// Report packages with bad licenses

0 commit comments

Comments
 (0)