Skip to content

Commit ab4e368

Browse files
committed
fix(nix): Make format-check non-blocking
Remove --Werror from clang-format check to treat formatting issues as warnings instead of errors. Different clang-format versions produce different formatting results, causing false failures across different environments.
1 parent 4b9bbae commit ab4e368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
files=$(find ./apps ./include ./examples ./tests ./docs \( -name '*.hpp' -o -name '*.cpp' \))
205205
206206
# Run clang-format check (warning only, don't fail)
207-
if ! clang-format --dry-run --Werror $files 2>&1; then
207+
if ! clang-format --dry-run $files 2>&1; then
208208
echo "⚠️ Warning: Some files are not formatted according to clang-format style"
209209
echo " This is not a failure, just a reminder to format your code"
210210
echo " Run: clang-format -i <file> to fix formatting"

0 commit comments

Comments
 (0)