mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
ci: add cppcheck for static analysis
This commit is contained in:
parent
da73d9ada9
commit
371eeb7176
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue