light/tools/ci/alpine_amd64/clang_format/script.sh
light7734 fc23cfc600
Some checks reported errors
continuous-integration/drone/push Build encountered an error
wip
2025-05-26 12:04:31 +03:30

13 lines
299 B
Bash
Executable file

set -e
cd $(git rev-parse --show-toplevel)
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
fi
done
echo "✅ All files are properly formatted"
exit 0