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 f966489 commit fd8a908Copy full SHA for fd8a908
.github/workflows/static-analysis-pr.yml
@@ -74,7 +74,7 @@ jobs:
74
runs-on: ubuntu-24.04
75
steps:
76
- uses: actions/checkout@v4
77
- - name: Search for NOLINT
+ - name: Search for linter suppression markers
78
run: |
79
export BASE_REF=${{ github.event.pull_request.base.ref }}
80
export CHANGED_FILES="$(git diff --name-only origin/$BASE_REF HEAD | grep '^tasks/')"
@@ -87,5 +87,9 @@ jobs:
87
echo "::error::Found 'NOLINT' in $file."
88
exit 1
89
fi
90
+ if grep -En 'IWYU[[:space:]]+pragma' "$file"; then
91
+ echo "::error::Found 'IWYU pragma' in $file."
92
+ exit 1
93
+ fi
94
done
- echo "No 'NOLINT' markers found in changed files."
95
+ echo "No linter suppression markers found in changed files."
0 commit comments