Commit ea03feb1 authored by Paul Irish's avatar Paul Irish Committed by Commit Bot

DevTools: In l10n presubmit, apply ignore list to modified files

Change-Id: I31caa742e32727fcdd3c992fca0f815fefbf9740
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1818609
Auto-Submit: Paul Irish <paulirish@chromium.org>
Reviewed-by: default avatarMandy Chen <mandy.chen@microsoft.com>
Reviewed-by: default avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699714}
parent 59e2d9de
......@@ -46,7 +46,7 @@ async function main() {
if (process.argv[2] === '-a')
filePathPromises.push(localizationUtils.getFilesFromDirectory(frontendPath, filePaths, ['.js']));
else
filePaths = process.argv.slice(2);
filePaths = process.argv.slice(2).filter(localizationUtils.shouldParseDirectory);
await Promise.all(filePathPromises);
filePaths.push(localizationUtils.SHARED_STRINGS_PATH);
......
......@@ -23,8 +23,8 @@ const esprimaTypes = {
TEMP_LITERAL: 'TemplateLiteral'
};
const excludeFiles = ['lighthouse-dt-bundle.js', 'Tests.js'];
const excludeDirs = ['test_runner', 'Images', 'langpacks', 'node_modules'];
const excludeFiles = ['Tests.js'];
const excludeDirs = ['test_runner', 'Images', 'langpacks', 'node_modules', 'lighthouse'];
const cppSpecialCharactersMap = {
'"': '\\"',
'\\': '\\\\',
......@@ -333,5 +333,6 @@ module.exports = {
SHARED_STRINGS_PATH,
sanitizeStringIntoCppFormat,
sanitizeStringIntoFrontendFormat,
shouldParseDirectory,
verifyFunctionCallee
};
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment