diff --git a/src/jit-format/jit-format.cs b/src/jit-format/jit-format.cs index 357344cc..036bd91f 100644 --- a/src/jit-format/jit-format.cs +++ b/src/jit-format/jit-format.cs @@ -615,7 +615,10 @@ public static bool RunClangTidy(List filenames, string compileCommands, { Parallel.ForEach(filenames, (filename) => { - formatOk &= DoClangTidyInnerLoop(fix, ignoreErrors, checks, compileCommands, filename, verbose); + if (!DoClangTidyInnerLoop(fix, ignoreErrors, checks, compileCommands, filename, verbose)) + { + formatOk = false; + } }); }