Skip to content

Commit 7538097

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

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,15 @@ 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+
if grep -rnw "tasks" -e "NOLINT"; then
88+
echo "Found 'NOLINT' in source files. Please address or justify its use.";
89+
exit 1;
90+
else
91+
echo "No 'NOLINT' markers found.";
92+
fi

tasks/mpi/example/include/ops_mpi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TestTaskMPI : public ppc::core::Task {
1515
bool RunImpl() override;
1616
bool PostProcessingImpl() override;
1717

18-
private:
18+
private: // NOLINTNEXTLINE
1919
std::vector<int> input_, output_;
2020
int rc_size_{};
2121

0 commit comments

Comments
 (0)