build: test format
Some checks failed
check-formatting / check-formatting (pull_request) Failing after 1m48s

This commit is contained in:
2025-02-05 16:23:23 +01:00
parent 9c796cd38b
commit a0fdf4a4b7
2 changed files with 36 additions and 0 deletions

8
scripts/check-format.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# Go to repository root
cd "$(dirname "$0")/.." || exit 2
CLANG_FORMAT_BIN="${CLANG_FORMAT_BIN:-clang-format}"
find ./src -iname '*.hpp' -o -iname '*.cpp' | xargs $CLANG_FORMAT_BIN -Werror -ferror-limit=1 --dry-run