mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Merge pull request #1980 from N-R-K/cppcheck
ci: add cppcheck for static analysis
This commit is contained in:
commit
1cc021e99c
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -47,3 +47,13 @@ jobs:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
run: |
|
run: |
|
||||||
make checkpatches
|
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…
Reference in a new issue