feat: use run-clang-format in cc --fix mode

This commit is contained in:
Charles Kerr 2018-09-19 08:42:03 -05:00
parent 1988c6876d
commit 03553abc11

View file

@ -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', key: 'python',