Skip to content

Commit

Permalink
ci: add cppcheck for static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
N-R-K committed Jan 5, 2025
1 parent da73d9a commit 2a61ef5
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 --check-level=exhaustive --inline-suppr --max-ctu-depth=8 -j"$(nproc)" \
$(pkg-config --cflags ncurses) src/nnn.c

0 comments on commit 2a61ef5

Please sign in to comment.