iw4x-sp/scripts/check-format.sh
6arelyFuture b8e12abf89
All checks were successful
check-formatting / check-formatting (push) Successful in 3m26s
build: test format (#1)
2025-02-05 15:49:53 +00:00

9 lines
230 B
Bash
Executable File

#!/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