mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -04:00
Print diff to know the format problems
This commit is contained in:
parent
a2b4b88801
commit
fb60208c88
@ -24,6 +24,7 @@ jobs:
|
||||
- script: |
|
||||
cd $(Build.SourcesDirectory)
|
||||
find . \( -name '*.h' -or -name '*.cpp' -or -name '*.c' -or -name '*.mm' -or -name '*.m' \) -print0 | xargs -0 clang-format -style=file -i
|
||||
git diff $(Build.SourceVersion)
|
||||
if [ "$(git diff $(Build.SourceVersion))" != "" ]; then exit 1; fi
|
||||
displayName: 'clang-format'
|
||||
- job: Linux
|
||||
|
Loading…
x
Reference in New Issue
Block a user