Skip to content

Commit

Permalink
Add Lizard code complexity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
0xg0nz0 committed Apr 22, 2024
1 parent 99ebc90 commit 7b9edc8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b9edc8

Please sign in to comment.