From 0388d0417dc7015d9d513353faae9e2ff126efe5 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 23 Nov 2025 17:41:53 +0100 Subject: [PATCH] [CI] Forbid LCOV suppressions in the codebase --- .github/workflows/static-analysis-pr.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/static-analysis-pr.yml b/.github/workflows/static-analysis-pr.yml index 1cc67ceb..6d70a4c9 100644 --- a/.github/workflows/static-analysis-pr.yml +++ b/.github/workflows/static-analysis-pr.yml @@ -149,6 +149,14 @@ jobs: echo "::error::Found 'IWYU pragma' in $file." exit 1 fi + if grep -q "LCOV_EXCL_START" "$file"; then + echo "::error::Found 'LCOV_EXCL_START' in $file." + exit 1 + fi + if grep -q "LCOV_EXCL_STOP" "$file"; then + echo "::error::Found 'LCOV_EXCL_STOP' in $file." + exit 1 + fi done echo "No linter suppression markers found in changed files."