diff --git a/script/lint.js b/script/lint.js index 3ee6ace0bd3..75de62a9a6d 100755 --- a/script/lint.js +++ b/script/lint.js @@ -47,6 +47,7 @@ function spawnAndCheckExitCode (cmd, args, opts) { } function cpplint (args) { + args.unshift(`--project_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) {