forked from Kagami/SVT-AV1
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 976 Bytes
/
cppcheck.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
name: Cppcheck
on:
push:
paths-ignore:
- "Docs/*"
- .travis.yml
- appveyor.yml
- .gitignore
- "*.md"
pull_request:
paths-ignore:
- "Docs/*"
- .travis.yml
- appveyor.yml
- .gitignore
- "*.md"
jobs:
check:
runs-on: ubuntu-18.04
steps:
# Default depth is 1
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install -y yasm cppcheck
- name: Run CMake
run: cmake -S . -B Build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Run Cppcheck
run: |
cppcheck \
--project=Build/compile_commands.json \
--error-exitcode=1 \
--enable=all \
-j $(nproc) \
--template="::error file={file},line={line},col={column}::{severity}: {message} ({id})\n{file}:{line}" \
-ithird_party \
--suppress=unusedFunction > /dev/null