File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ jobs:
137137 BITWISE_VIOLATIONS=$(find src/ -name "*.c" -o -name "*.h" | while read file; do
138138 # Remove all types of C comments, then check for violations
139139 # This handles both // and /* */ comments properly
140- perl -pe 's|//.*||g ; s|/\*.*?\*/||gs ' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
140+ perl -0pe 's|/\*.*?\*/||gs ; s|//.*||gm ' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
141141 done)
142142
143143 BITWISE_COUNT=$(echo "$BITWISE_VIOLATIONS" | grep -c . 2>/dev/null || true)
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121121 BITWISE_VIOLATIONS=$(find src/ -name "*.c" -o -name "*.h" | while read file; do
122122 # Remove all types of C comments, then check for violations
123123 # This handles both // and /* */ comments properly
124- perl -pe 's|//.*||g ; s|/\*.*?\*/||gs ' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
124+ perl -0pe 's|/\*.*?\*/||gs ; s|//.*||gm ' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
125125 done)
126126
127127 BITWISE_COUNT=$(echo "$BITWISE_VIOLATIONS" | grep -c . 2>/dev/null || true)
You can’t perform that action at this time.
0 commit comments