ci: use clang format dry-run -Werror
This commit is contained in:
parent
673b096261
commit
ffa7d88cae
1 changed files with 2 additions and 3 deletions
5
.github/workflows/check-format.yml
vendored
5
.github/workflows/check-format.yml
vendored
|
|
@ -34,6 +34,5 @@ jobs:
|
|||
- name: Check C++ format
|
||||
shell: fish {0}
|
||||
run: |
|
||||
for file in (string match -v 'build/*' **.cpp **.hpp)
|
||||
clang-format $file | diff -u $file - || exit 1
|
||||
end
|
||||
find plugin extras -name '*.cpp' -o -name '*.hpp' \
|
||||
| xargs clang-format --dry-run --Werror
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue