From 289128b96cd60d8a29a08df3d301c20e64ca89b8 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Wed, 8 Jun 2022 01:29:39 -0700 Subject: [PATCH] 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 --- script/lint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/lint.js b/script/lint.js index 6cfb8143cd..e2735cee1a 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) {