forked from mltframework/mlt
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 977 Bytes
/
static-code-analysis.yml
File metadata and controls
28 lines (26 loc) · 977 Bytes
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
name: static-code-analysis
on: [push, pull_request]
jobs:
cppcheck:
name: Cppcheck
runs-on: ubuntu-latest
env:
extra-args: >-
-i src/modules/decklink/darwin
-i src/modules/decklink/linux
-i src/modules/decklink/win
-i src/modules/glaxnimate/glaxnimate/
-i src/modules/plus/ebur128/
-i src/modules/xml/common.c
-i src/win32/strptime.c
--include=src/framework/mlt_log.h
--include=src/framework/mlt_types.h
--library=cppcheck.cfg
--suppress=ctuOneDefinitionRuleViolation
--suppress=syntaxError:src/modules/xml/common.c
steps:
- uses: actions/checkout@v4
- name: Install Cppcheck
run: sudo apt-get -qq -y install cppcheck
- name: Run Cppcheck
run: cppcheck src/ -j $(nproc) --force --inline-suppr --library=qt --error-exitcode=1 --template="::{severity} file={file},line={line},col={column}::{message}" ${{ env.extra-args }}