Skip to content

Refine cppchck workflow steps #11

Refine cppchck workflow steps

Refine cppchck workflow steps #11

Workflow file for this run

name: CppCheck Analysis
on: [push]
jobs:
build:
name: cppcheck
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure Compilation Database
run: cmake --preset cppcheck
- name: Run CppCheck
uses: deep5050/[email protected]
with:
github_token: ${{secrets.GITHUB_TOKEN}}
enable: 'style'
force: 'enable'
other_options: >-
--suppress=incorrectStringBooleanError
--suppress=cstyleCast
--suppress=variableScope
--suppress=commaSeparatedReturn
--suppress=variableHidingEnum
--suppress=invalidPointerCast
--suppress=invalidscanf
--inline-suppr
-I headers hc common headers unix win32
-ifractint
- name: Print Report
run: cmake -E cat cppcheck_report.txt