From d0c2e90577cd6e30a57ea375f9a5b5911c20f1d8 Mon Sep 17 00:00:00 2001 From: Simon Mo Date: Fri, 14 Aug 2020 11:22:55 -0700 Subject: [PATCH] [Build] Make sure local format.sh check protobuf (#10118) * Ignore protobuf files for clangformat check * Revert "Ignore protobuf files for clangformat check" This reverts commit ccd84d4e1517220eb4e946918174150ce2265467. * Make sure protobuf is checked locally --- ci/travis/format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/travis/format.sh b/ci/travis/format.sh index 3c21bc9bc..87822610e 100755 --- a/ci/travis/format.sh +++ b/ci/travis/format.sh @@ -182,7 +182,7 @@ format_all() { echo "$(date)" "clang-format...." if command -v clang-format >/dev/null; then - git ls-files -- '*.cc' '*.h' "${GIT_LS_EXCLUDES[@]}" | xargs -P 5 clang-format -i + git ls-files -- '*.cc' '*.h' '*.proto' "${GIT_LS_EXCLUDES[@]}" | xargs -P 5 clang-format -i fi if command -v shellcheck >/dev/null; then