ci: use clang format dry-run -Werror

This commit is contained in:
2 * r + 2 * t 2026-04-06 21:12:14 +10:00
parent 673b096261
commit ffa7d88cae

View file

@ -34,6 +34,5 @@ jobs:
- name: Check C++ format - name: Check C++ format
shell: fish {0} shell: fish {0}
run: | run: |
for file in (string match -v 'build/*' **.cpp **.hpp) find plugin extras -name '*.cpp' -o -name '*.hpp' \
clang-format $file | diff -u $file - || exit 1 | xargs clang-format --dry-run --Werror
end