mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-05 17:37:22 +00:00
chore: remove the autocommit action
dont want this, should be check only Co-Authored-By: MatthewBeshay <92357869+MatthewBeshay@users.noreply.github.com>
This commit is contained in:
32
.github/scripts/run-clang-format-all.sh
vendored
32
.github/scripts/run-clang-format-all.sh
vendored
@@ -1,32 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
formatter="${CLANG_FORMAT_BIN:-clang-format-19}"
|
||||
mode="${1:-apply}"
|
||||
|
||||
mapfile -d '' -t files < <(
|
||||
git ls-files -z -- \
|
||||
'*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' '*.inl'
|
||||
)
|
||||
|
||||
if [[ "${#files[@]}" -eq 0 ]]; then
|
||||
echo "No tracked C/C++ files found."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Found ${#files[@]} tracked C/C++ files."
|
||||
"$formatter" --version
|
||||
|
||||
case "$mode" in
|
||||
apply)
|
||||
printf '%s\0' "${files[@]}" | xargs -0 -r -n 100 "$formatter" -i
|
||||
;;
|
||||
check)
|
||||
printf '%s\0' "${files[@]}" | xargs -0 -r -n 100 "$formatter" --dry-run --Werror
|
||||
;;
|
||||
*)
|
||||
echo "Unknown mode: $mode" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user