Skip to content

clang-format + clang-tidy #18

clang-format + clang-tidy

clang-format + clang-tidy #18

Workflow file for this run

name: Linting
on:
pull_request:
branches: [main]
paths: ['**/*.cpp', '**/*.hpp', '!lib/**']
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Linter
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: 'file'
tidy-checks: '-*'
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
lines-changed-only: true
no-lgtm: false
- name: Fail Fast
if: steps.linter.outputs.checks-failed > 0
run: exit 1