Skip to content

Commit

Permalink
rename whitelist to allowlist in region-checker (#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jul 17, 2020
1 parent f373a2f commit cd2c561
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var whitelist = {
var allowlist = {
'/config.js': [
24,
25,
Expand Down Expand Up @@ -45,5 +45,5 @@ var whitelist = {
};

module.exports = {
whitelist: whitelist
allowlist: allowlist
};
4 changes: 2 additions & 2 deletions scripts/region-checker/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var fs = require('fs');
var path = require('path');
var whitelist = require('./whitelist').whitelist;
var allowlist = require('./allowlist').allowlist;

function checkFile(location) {
var file = fs.readFileSync(location);
Expand Down Expand Up @@ -57,7 +57,7 @@ function checkForRegions() {

regionMatches.forEach(function(match) {
var normalizedPath = match.file.substring(libPath.length);
if (whitelist[normalizedPath] && whitelist[normalizedPath].indexOf(match.line) >= 0) {
if (allowlist[normalizedPath] && allowlist[normalizedPath].indexOf(match.line) >= 0) {
return;
}
warnings.push('File: ' + normalizedPath + '\tLine ' + match.line + ':\t' + match.code.trim());
Expand Down

0 comments on commit cd2c561

Please sign in to comment.