Skip to content

Commit d1b4983

Browse files
committed
[CI] Enable NOLINT CI check
1 parent 2914e47 commit d1b4983

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,18 @@ jobs:
7878
run: |
7979
echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
8080
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

Comments
 (0)