Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/static-analysis-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,22 @@ jobs:
run: |
echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
exit 1
nolint-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Search for NOLINT
run: |
export BASE_REF=${{ github.event.pull_request.base.ref }}
export CHANGED_FILES="$(git diff --name-only origin/$BASE_REF HEAD | grep '^tasks/')"
if [ -z "$CHANGED_FILES" ]; then
echo "No changed files in tasks directory."
exit 0
fi
for file in $CHANGED_FILES; do
if grep -n "NOLINT" "$file"; then
echo "::error::Found 'NOLINT' in $file."
exit 1
fi
done
echo "No 'NOLINT' markers found in changed files."
Loading