Skip to content

Commit 0388d04

Browse files
committed
[CI] Forbid LCOV suppressions in the codebase
1 parent 847e64e commit 0388d04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/static-analysis-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ jobs:
149149
echo "::error::Found 'IWYU pragma' in $file."
150150
exit 1
151151
fi
152+
if grep -q "LCOV_EXCL_START" "$file"; then
153+
echo "::error::Found 'LCOV_EXCL_START' in $file."
154+
exit 1
155+
fi
156+
if grep -q "LCOV_EXCL_STOP" "$file"; then
157+
echo "::error::Found 'LCOV_EXCL_STOP' in $file."
158+
exit 1
159+
fi
152160
done
153161
154162
echo "No linter suppression markers found in changed files."

0 commit comments

Comments
 (0)