fixed cppcheck #3
This file contains hidden or 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 with netpass-builder | |
| on: | |
| push: | |
| branches: | |
| - '**' # all branches | |
| jobs: | |
| cppcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout netpass repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install cppcheck | |
| run: sudo apt-get update && sudo apt-get install -y cppcheck | |
| - name: Run cppcheck | |
| run: | | |
| cppcheck --enable=warning,unusedFunction,performance,portability,missingInclude --inline-suppr --std=c11 \ | |
| --language=c --quiet --suppressions-list=.cppcheck.suppress --template=gcc --check-level=exhaustive \ | |
| --error-exitcode=1 source/ |