GHA: add a job to check function complexity

- Done with the new top-complexity script which uses the pmccabe tool.

- Any function scoring over 100 makes the test fail

- The script outputs all functions scoring over 70

- Two >100 functions are whitelisted by name, but they are not allowed
  to increase their scores.

Closes #17398
This commit is contained in:
Daniel Stenberg 2025-05-20 16:49:57 +02:00
parent 4a2bd8e458
commit 203b4349af
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 146 additions and 1 deletions

View file

@ -25,7 +25,7 @@
EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl checksrc-all.sh \
mk-ca-bundle.pl mk-unity.pl schemetable.c cd2nroff nroff2cd cdall cd2cd managen \
dmaketgz maketgz release-tools.sh verify-release cmakelint.sh mdlinkcheck \
CMakeLists.txt pythonlint.sh randdisable wcurl
CMakeLists.txt pythonlint.sh randdisable wcurl top-complexity
dist_bin_SCRIPTS = wcurl