From 371eeb7176f565ee3ce24f0f17a4591a7a4b6509 Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 20 Jun 2022 00:02:17 +0600 Subject: [PATCH] ci: add cppcheck for static analysis --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e5d8019..a1cb8346 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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