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

--root has been improved upstream in depot_tools to better handle Windows:
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3648533
This commit is contained in:
David Sanders 2022-06-08 01:29:39 -07:00 committed by GitHub
parent 16db5a112e
commit 289128b96c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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