[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
This commit is contained in:
Simon Mo
2020-08-14 11:22:55 -07:00
committed by GitHub
parent 6b53df9599
commit d0c2e90577
+1 -1
View File
@@ -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