From 144cef20c89755cf720791031cc6ba7a14c90456 Mon Sep 17 00:00:00 2001 From: light7734 Date: Tue, 15 Jul 2025 16:00:35 +0330 Subject: [PATCH] ci: refactor clang-format ci check to print all files with formatting issues --- .drone.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8c9ec7a..03b6ba8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,16 +18,21 @@ steps: set -e clang-format --version + has_fomatting_issues=0 + find ./modules -name '*.?pp' | while read -r file; do echo "Checking format for $file" if ! clang-format --dry-run --Werror "$file"; then echo "❌ Formatting issue detected in $file" - exit 1 + has_fomatting_issues=1 fi done - echo "✅ All files are properly formatted" + if [ "$has_errors" -eq 0 ]; then + echo "✅ All files are properly formatted! Well done! ^~^" + fi + exit ${has_fomatting_issues} --- kind: pipeline