Rename variables to avoid shadowing #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CppCheck Analysis | |
on: [push] | |
jobs: | |
build: | |
name: cppcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cppcheck | |
uses: deep5050/cppcheck-action@v3.0 | |
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 | |
- run: cmake -E cat cppcheck_report.txt |