We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51605e3 commit 4800f4cCopy full SHA for 4800f4c
.github/workflows/pr-code-style-check.yml
@@ -31,8 +31,11 @@ jobs:
31
run: |
32
ERROR=0
33
for file in $FILES; do
34
- echo "🔍 Checking formatting for: $file"
35
- diff -u "$file" <(clang-format "$file") || ERROR=1
+ OUTPUT=$(clang-format --dry-run --Werror "$file" 2>&1)
+ if [[ $? -ne 0 ]]; then
36
+ echo "::error file=$file::$OUTPUT"
37
+ ERROR=1
38
+ fi
39
done
40
if [[ $ERROR -eq 1 ]]; then
41
echo "❌ Formatting issues detected! Run 'clang-format -i <file>' to fix them."
0 commit comments