Skip to content

Commit 4f6ef7a

Browse files
committed
[github,workflows] Add static analysis action
Signed-off-by: Mykhailo Lohvynenko <Mykhailo_Lohvynenko@epam.com>
1 parent 462025e commit 4f6ef7a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Static analysis
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- develop
7+
- feature_*
8+
9+
pull_request:
10+
branches:
11+
- main
12+
- develop
13+
- feature_*
14+
15+
jobs:
16+
cpp-check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Prepare
21+
run: |
22+
sudo apt install cppcheck -y
23+
24+
- name: Run cppcheck
25+
run: |
26+
cppcheck --enable=all --inline-suppr -I src --std=c++17 --error-exitcode=1 \
27+
--suppressions-list=./suppressions.txt src

suppressions.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
missingIncludeSystem
2+
useStlAlgorithm

0 commit comments

Comments
 (0)