fix scripts
Some checks failed
Bigfoot / Build & Test Debug (Unity Build: OFF) (push) Successful in 24s
Bigfoot / Build & Test Debug (Unity Build: ON) (push) Successful in 24s
Bigfoot / Build & Test RelWithDebInfo (Unity Build: OFF) (push) Successful in 26s
Bigfoot / Build & Test RelWithDebInfo (Unity Build: ON) (push) Successful in 25s
Bigfoot / Build & Test Release (Unity Build: OFF) (push) Successful in 18s
Bigfoot / Build & Test Release (Unity Build: ON) (push) Successful in 17s
Bigfoot / Clang Format Checks (push) Failing after 9s

This commit is contained in:
2026-01-28 17:29:53 +01:00
parent b3011e45db
commit 30203dda4a
2 changed files with 23 additions and 21 deletions

View File

@@ -18,6 +18,7 @@ IF "%~1"=="--check" (
) ELSE IF "%~1"=="--fix" (
SET MODE=fix
) ELSE (
REM Accumulate directories
SET DIRS=!DIRS! "%~1"
)
SHIFT
@@ -54,14 +55,10 @@ FOR %%D IN (%DIRS%) DO (
ECHO Formatting !FILE!
%FMT% -i "!FILE!"
) ELSE (
REM Check mode: run clang-format --dry-run --Werror
ECHO Checking !FILE!
%FMT% --dry-run --Werror "!FILE!" 2>nul
IF ERRORLEVEL 1 (
REM clang-format will already print diagnostic
ECHO --- Diff for !FILE! ---
REM Generate diff using fc
%FMT% "!FILE!" > "%TEMP%\fmt.tmp"
fc "!FILE!" "%TEMP%\fmt.tmp"
REM clang-format will already print diagnostics
SET EXIT_CODE=1
)
)