mirror of
https://github.com/curl/curl.git
synced 2026-05-20 04:46:20 +03:00
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:
parent
f97f01f592
commit
80214dca6b
3 changed files with 140 additions and 3 deletions
7
.github/workflows/checksrc.yml
vendored
7
.github/workflows/checksrc.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue