-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (42 loc) · 1.51 KB
/
ccpcheck.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
# GitHub Action to run cppcheck
#
name: Cppcheck
on: [push, pull_request]
jobs:
cpplint:
runs-on: ubuntu-latest
name: Cppcheck
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Cppcheck
run: |
sudo apt-get update
sudo apt-get install cppcheck
- name: Cppcheck Core Library
run: |
cppcheck --std=c++17 ./gz-waves/include/gz/waves/*.hh
cppcheck --std=c++17 ./gz-waves/src/*.cc ./gz-waves/src/*.hh
- name: Cppcheck Tests
run: |
cppcheck --std=c++17 ./gz-waves/test/performance/*.cc
cppcheck --std=c++17 ./gz-waves/test/plots/*.cc
- name: Cppcheck Hydrodynamics Plugin
run: |
cppcheck --std=c++17 --suppress=unknownMacro \
./gz-waves/src/systems/hydrodynamics/*.hh
cppcheck --std=c++17 --suppress=unknownMacro \
./gz-waves/src/systems/hydrodynamics/*.cc
- name: Cppcheck DynamicGeometry Plugin
run: |
cppcheck --std=c++17 --suppress=unknownMacro \
./gz-waves/src/systems/dynamic/*.hh
cppcheck --std=c++17 --suppress=unknownMacro \
./gz-waves/src/systems/dynamic/*.cc
- name: Cppcheck Waves Plugin
run: |
cppcheck --std=c++17 ./gz-waves/include/gz/common/*.hh
cppcheck --std=c++17 --suppress=unknownMacro \
./gz-waves/src/systems/waves/*.hh
cppcheck --std=c++17 --suppress=unknownMacro \
./gz-waves/src/systems/waves/*.cc