-
-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (28 loc) · 1013 Bytes
/
cpp_lint.yml
File metadata and controls
31 lines (28 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: cpplint
on:
pull_request:
paths-ignore:
# Ignore linting check if only compilation workflow files changed
- '.github/workflows/compile_*.yml'
jobs:
lint: # Renamed job from 'build' to 'lint' for clarity
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repository
uses: actions/checkout@v4 # Updated to v4 for security and performance
- name: 🔍 Run cpplint via Reviewdog
uses: reviewdog/action-cpplint@v1 # Using @v1 as a common stable major version
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
flags: --linelength=100
# Using YAML multi-line string (>) for improved filter readability
filter: >
-whitespace/tab,
-readability/braces,
-whitespace/braces,
-whitespace/comments,
-whitespace/indent,
-whitespace/newline,
-whitespace/operators,
-whitespace/parens