Skip to content

Commit

Permalink
Merge pull request #1980 from N-R-K/cppcheck
Browse files Browse the repository at this point in the history
ci: add cppcheck for static analysis
  • Loading branch information
jarun authored Jan 6, 2025
2 parents a482bec + 371eeb7 commit 1cc021e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1cc021e

Please sign in to comment.