[script] update 'make-pretty clang-tidy' to output warning/error only (#5754)

This change limits the output (when clang-tidy check fails) to error
or warning messages along with next 5 lines (remove `^|`)
This commit is contained in:
Abtin Keshavarzian
2020-11-02 20:11:18 -08:00
committed by GitHub
parent 0b0d6eef1d
commit abdf275126
+1 -1
View File
@@ -177,7 +177,7 @@ do_clang_tidy_check()
if grep -q "warning: \|error: " output.txt; then
echo "You must pass the clang tidy checks before submitting a pull request"
echo ""
grep --color -E '^|warning: |error: ' output.txt
grep --color -E 'warning: |error: ' -A 5 output.txt
exit 1
fi
)