Skip to content

Commit ae7c24e

Browse files
authored
Don't show stderr output of clang-tidy in Travis CI (#2089)
When we run clang-tidy for the second time to show the error, don't show stderr output because they are not very helpful and all error messages are printed in stdout.
1 parent 923c646 commit ae7c24e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clang-tidy-diff.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ then
88
echo "Fix clang-tidy errors before committing!"
99
echo
1010
# Run clang-tidy once again to show the error
11-
git diff -U0 $MERGE_BASE | $CLANG_TIDY_DIFF -quiet -p1
11+
git diff -U0 $MERGE_BASE | $CLANG_TIDY_DIFF -quiet -p1 2> /dev/null
1212
exit 1
1313
fi

0 commit comments

Comments
 (0)