diff --git a/script/lint.js b/script/lint.js index 6cfb8143cd08..e2735cee1a1c 100755 --- a/script/lint.js +++ b/script/lint.js @@ -44,7 +44,7 @@ function spawnAndCheckExitCode (cmd, args, opts) { } function cpplint (args) { - args.unshift(`--project_root=${SOURCE_ROOT}`); + args.unshift(`--root=${SOURCE_ROOT}`); const result = childProcess.spawnSync(IS_WINDOWS ? 'cpplint.bat' : 'cpplint.py', args, { encoding: 'utf8', shell: true }); // cpplint.py writes EVERYTHING to stderr, including status messages if (result.stderr) {