We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2914e47 commit d1b4983Copy full SHA for d1b4983
1 file changed
.github/workflows/static-analysis-pr.yml
@@ -78,3 +78,18 @@ jobs:
78
run: |
79
echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
80
exit 1
81
+ nolint-check:
82
+ runs-on: ubuntu-24.04
83
+ steps:
84
+ - uses: actions/checkout@v4
85
+ - name: Search for NOLINT
86
+ run: |
87
+ git fetch origin ${{ github.event.pull_request.base.ref }}
88
+ CHANGED_FILES="$(git diff --name-only origin/${{ github.event.pull_request.base.ref }} HEAD)"
89
+ for file in $CHANGED_FILES; do
90
+ if grep -n "NOLINT" "$file"; then
91
+ echo "::error::Found 'NOLINT' in $file."
92
+ exit 1
93
+ fi
94
+ done
95
+ echo "No 'NOLINT' markers found in changed files."
0 commit comments