-
Notifications
You must be signed in to change notification settings - Fork 40
50 lines (48 loc) · 1.69 KB
/
ccplint.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# GitHub Action to run cpplint
#
# The cpplint configuration file is:
#
# ./CPPLINT.cfg
#
name: Cpplint
on: [push, pull_request]
jobs:
cpplint:
runs-on: ubuntu-latest
name: Cpplint
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Cpplint
run: |
pip install cpplint
- name: Cpplint Core Library
run: |
cpplint ./gz-waves/include/gz/waves/*.hh
cpplint ./gz-waves/src/*.cc ./gz-waves/src/*.hh
- name: Cpplint Tests
run: |
cpplint ./gz-waves/test/performance/*.cc
cpplint ./gz-waves/test/plots/*.cc
- name: Cpplint Hydrodynamics Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./gz-waves/src/systems/hydrodynamics/*.hh \
./gz-waves/src/systems/hydrodynamics/*.cc
- name: Cpplint DynamicGeometry Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard \
./gz-waves/src/systems/dynamic/*.hh \
./gz-waves/src/systems/dynamic/*.cc
- name: Cpplint Waves Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent \
./gz-waves/include/gz/common/*.hh
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard \
./gz-waves/src/systems/waves/*.hh
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./gz-waves/src/systems/waves/*.cc