From abdf27512662a4ba15e7901d8ace692d49fc48f7 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 2 Nov 2020 20:11:18 -0800 Subject: [PATCH] [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 `^|`) --- script/make-pretty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/make-pretty b/script/make-pretty index a2508606c..5150d54da 100755 --- a/script/make-pretty +++ b/script/make-pretty @@ -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 )