Skip to content

Commit 12ef046

Browse files
committed
workflows: Add lizard static analysis
Signed-off-by: Chuck Lever <[email protected]>
1 parent b0a3a42 commit 12ef046

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/static.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,38 @@ jobs:
4545
--suppress=unusedFunction \
4646
src/
4747
echo "::endgroup::"
48+
49+
lizard:
50+
runs-on: ubuntu-latest
51+
permissions: read-all
52+
53+
steps:
54+
- uses: actions/checkout@v4
55+
56+
- name: Install build dependencies
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get -y install \
60+
build-essential \
61+
autoconf \
62+
automake \
63+
gnutls-dev \
64+
libkeyutils-dev \
65+
libnl-3-dev \
66+
libnl-genl-3-dev \
67+
libglib2.0-dev
68+
69+
- name: Install tools
70+
run: |
71+
pip3 install lizard bandit[toml]
72+
73+
- name: Configure
74+
run: |
75+
./autogen.sh
76+
./configure --with-systemd
77+
78+
- name: Run Lizard Complexity Analysis
79+
run: |
80+
echo "::group::Complexity Analysis"
81+
lizard --CCN 15 src/ || true
82+
echo "::endgroup::"

0 commit comments

Comments
 (0)