-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (56 loc) · 2.38 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
51
52
53
54
55
56
57
58
# 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 ./asv_sim_gazebo_plugins/include/asv/sim/*.hh
cpplint ./asv_sim_gazebo_plugins/src/*.cc
- name: Cpplint Anemometer Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./asv_sim_gazebo_plugins/src/systems/anemometer/*.hh \
./asv_sim_gazebo_plugins/src/systems/anemometer/*.cc
- name: Cpplint FoilLiftDrag Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./asv_sim_gazebo_plugins/src/systems/foil_lift_drag/*.hh \
./asv_sim_gazebo_plugins/src/systems/foil_lift_drag/*.cc
- name: Cpplint Mooring Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./asv_sim_gazebo_plugins/src/systems/mooring/*.hh \
./asv_sim_gazebo_plugins/src/systems/mooring/*.cc
- name: Cpplint SailLiftDrag Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./asv_sim_gazebo_plugins/src/systems/sail_lift_drag/*.hh \
./asv_sim_gazebo_plugins/src/systems/sail_lift_drag/*.cc
- name: Cpplint SailPositionController Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./asv_sim_gazebo_plugins/src/systems/sail_position_controller/*.hh \
./asv_sim_gazebo_plugins/src/systems/sail_position_controller/*.cc
- name: Cpplint Wind Plugin
run: |
cpplint --filter=-whitespace/blank_line,-whitespace/indent,-build/header_guard,-whitespace/newline \
./asv_sim_gazebo_plugins/src/systems/wind/*.hh \
./asv_sim_gazebo_plugins/src/systems/wind/*.cc