Use Cppcheck

This commit is contained in:
Alex Kotov 2021-12-18 01:17:14 +05:00
parent 086e4bbc07
commit 4ffef19e43
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt install clang tcc
run: sudo apt install clang cppcheck tcc
- name: autogen
run: ./autogen.sh
- name: configure
@ -32,5 +32,11 @@ jobs:
run: make
- name: check
run: make check || cat test-suite.log
- name: cppcheck source code
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability include/ src/
- name: cppcheck examples
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=duplicateExpression --suppress=staticStringCompare examples/
- name: cppcheck tests
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=unusedStructMember tests/
- name: install
run: sudo make install