diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3995816..aa7324f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,3 +88,9 @@ jobs: env: DOCKERFILE_HADOLINT: false GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Lizard Runner + uses: Uno-Takashi/Lizard-Runner@v3 + with: + path: ./sdk + CCN: 15 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8218b1..158f6ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,12 @@ repos: - id: shfmt - repo: local hooks: + - id: lizard + name: Check code cyclomatic complexity + entry: lizard -C 15 -i 0 -w -l c,cc,cpp,h,hpp + language: system + pass_filenames: true + always_run: false - id: build name: Build entry: cmake --build build