Skip to content

CppCheck Lint

CppCheck Lint #45

Workflow file for this run

---
name: CppCheck Lint
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
workflow_dispatch:
jobs:
lint:
name: CppCheck Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install dependencies
run: |
git clone --depth 1 --branch 2.15.0 https://github.com/danmar/cppcheck.git
cd cppcheck
sudo make SRCDIR=build CFGDIR=/usr/bin/cfg HAVE_RULES=yes install
cd ..
rm -fr cppcheck
ldconfig
- name: Check version
run: |
which cppcheck
cppcheck --version
- name: Lint
run: make test/static