From 03553abc11a63ca025873681b3bfad57c4fdcd2a Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 19 Sep 2018 08:42:03 -0500 Subject: [PATCH] feat: use run-clang-format in cc --fix mode --- script/lint.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/lint.js b/script/lint.js index 966c0146a44..76d6cede614 100755 --- a/script/lint.js +++ b/script/lint.js @@ -59,7 +59,10 @@ const LINTERS = [ { } } } - if (result.status) process.exit(result.status) + if (result.status) { + if (opts.fix) spawnAndCheckExitCode('python', ['script/run-clang-format.py', ...filenames]) + process.exit(result.status) + } } }, { key: 'python',