Skip to content

foomatic-rip: Reject options defined by FoomaticRIPOption #26

foomatic-rip: Reject options defined by FoomaticRIPOption

foomatic-rip: Reject options defined by FoomaticRIPOption #26

Workflow file for this run

name: cppcheck
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
cppcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install cppcheck
run: |
# Retry to ride out transient Ubuntu mirror sync failures (matches build.yml)
sudo apt-get update -o Acquire::Retries=3
sudo apt-get install -y -o Acquire::Retries=3 cppcheck
- name: Run cppcheck
run: |
cppcheck \
--enable=warning,performance,portability \
--error-exitcode=1 \
--inline-suppr \
--suppress=missingIncludeSystem \
--suppress=unknownMacro \
-DVERSION="$(grep -oP 'AC_INIT\(\[[^\]]*\],\s*\[\K[^\]]*' configure.ac)" \
.