[build] Ignore submodules when formatting code

We have submodules with names that will match *.hpp and
we are not really interested on formatting them.
This commit is contained in:
Thiago Marcos P. Santos
2019-09-18 23:37:04 +03:00
committed by Jordan Kiley
parent ae844abbd1
commit 7bca176bea

View File

@@ -722,7 +722,7 @@ jobs:
- run:
name: Clang Format
command: |
git diff -U0 --no-color origin/master... *.cpp *.hpp | clang-format-diff-8 -p1 -i
git diff -U0 --ignore-submodules=all --no-color origin/master... *.cpp *.hpp | clang-format-diff-8 -p1 -i
git diff --exit-code
- run:
name: Code Generators