commit 371eeb7176f565ee3ce24f0f17a4591a7a4b6509 parent da73d9ada93788bad37eb4648dfa2a0ac92c56ed Author: NRK <nrk@disroot.org> Date: Mon, 20 Jun 2022 00:02:17 +0600 ci: add cppcheck for static analysis Diffstat:
| M | .github/workflows/ci.yml | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git 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