Skip to content

CppCheck

CppCheck #1960

Workflow file for this run

name: 'CppCheck'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * */5'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install
run: |
( cd /tmp
git clone --depth 1 'https://gitlab.com/libeigen/eigen'
cmake -S 'eigen' -B 'eigen/build'
cmake --build 'eigen/build' --parallel 4
sudo cmake --install 'eigen/build' )
( cd /tmp
git clone https://github.com/danmar/cppcheck.git
( cd cppcheck
git checkout fa561e9c242e7ceeb16408ef55e8bcea04fcf46f )
cmake -S 'cppcheck' -B 'cppcheck/build'
cmake --build 'cppcheck/build' --parallel 4
sudo cmake --install 'cppcheck/build' )
- name: Verify
run: |
cppcheck \
--enable=all \
--error-exitcode=1 \
--suppress=missingIncludeSystem \
--suppress=unusedFunction:include/fcarouge/internal/format.hpp \
--verbose \
-I benchmark/include \
-I include \
-I linalg/eigen \
-I linalg/lazy \
-I linalg/naive \
.