GHA: verify function-lengths

No production code function is allowed to be longer than 500 lines.

The lib/setopt.c:setopt_cptr function is currently exempt, as a single
exception until we make it smaller.

Closes #21492
This commit is contained in:
Daniel Stenberg 2026-05-04 14:25:47 +02:00
parent f97f01f592
commit 80214dca6b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 140 additions and 3 deletions

View file

@ -99,7 +99,7 @@ jobs:
scripts/pythonlint.sh
complexity:
name: 'complexity'
name: 'complexity and function sizes'
runs-on: ubuntu-slim
timeout-minutes: 3
steps:
@ -117,9 +117,12 @@ jobs:
with:
persist-credentials: false
- name: 'check scores'
- name: 'check function complexity'
run: ./scripts/top-complexity
- name: 'check function lengths'
run: ./scripts/top-length
xmllint:
name: 'xmllint'
runs-on: ubuntu-slim