chore: use --root instead of --project_root for cpplint (#34474)

--root has been improved upstream in depot_tools to better handle Windows:
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3648533

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
trop[bot]
2022-06-08 12:17:41 -04:00
committed by GitHub
parent 69179bbfe7
commit a4a9210d2d

View File

@@ -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) {