Merge pull request #1980 from N-R-K/cppcheck

ci: add cppcheck for static analysis
This commit is contained in:
Arun Prakash Jana 2025-01-06 18:50:15 +05:30 committed by GitHub
commit 1cc021e99c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,3 +47,13 @@ jobs:
CC: gcc
run: |
make checkpatches
ubuntu-cppcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Static analysis with cppcheck
run: |
sudo apt install cppcheck
cppcheck --std="c11" --error-exitcode=1 --enable=performance,portability \
--force --inline-suppr --max-ctu-depth=8 -j"$(nproc)" \
$(pkg-config --cflags ncurses) src/nnn.c