diff --git a/.github/workflows/check_styling.yml b/.github/workflows/check_styling.yml index 0c7413a2..03606f1f 100644 --- a/.github/workflows/check_styling.yml +++ b/.github/workflows/check_styling.yml @@ -37,13 +37,16 @@ jobs: - name: Check out Git repository uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v1 + - uses: reviewdog/action-cpplint@master with: - python-version: 3.8 - - - name: Install Python dependencies - run: pip install cpplint - - - name: Run linters - run: cpplint --recursive src/ + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-check + flags: --linelength=100 # Optional + filter: "-readability/braces\ + ,-whitespace/braces\ + ,-whitespace/comments\ + ,-whitespace/indent\ + ,-whitespace/newline\ + ,-whitespace/operators\ + ,-whitespace/parens\ + " # Optional