mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 17:09:51 +00:00
[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:
+1
-1
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user