File tree Expand file tree Collapse file tree
tasks/mpi/example/include Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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."
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments