mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user