File: static-code-analysis.yml

package info (click to toggle)
mlt 7.36.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 14,648 kB
  • sloc: cpp: 87,247; ansic: 79,634; python: 504; asm: 311; sh: 221; ruby: 197; javascript: 90; makefile: 45; perl: 33; java: 29; cs: 19; php: 18; tcl: 15
file content (42 lines) | stat: -rw-r--r-- 1,756 bytes parent folder | download
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
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
        --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 }}
  clang-format:
    name: clang-format
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install dependencies
        run: |
          sudo apt-get -yqq install clang-format-14
      - name: Run CMake
        run: |
          cmake -S . -B build -D CLANG_FORMAT=ON -D MOD_SDL2=OFF -D MOD_QT6=OFF -D MOD_AVFORMAT=OFF -D MOD_DECKLINK=OFF -D MOD_FREI0R=OFF -D MOD_GDK=OFF -D MOD_JACKRACK=OFF -D USE_LV2=OFF -D USE_VST2=OFF -D MOD_KDENLIVE=OFF -D MOD_NORMALIZE=OFF -D MOD_OLDFILM=OFF -D MOD_MOVIT=OFF -D MOD_PLUS=OFF -D MOD_PLUSGPL=OFF -D MOD_RESAMPLE=OFF -D MOD_RTAUDIO=OFF -D MOD_RUBBERBAND=OFF -D MOD_SOX=OFF -D MOD_VIDSTAB=OFF -D MOD_VORBIS=OFF -D MOD_XINE=OFF -D MOD_XML=OFF
      - name: Run clang-format
        run: |
          cd build
          make clang-format-check