Verification · Static analysis · Complexity limits
Size budgets
Limits on function, file and parameter counts.
How to build it
- Choose limits for function length, file length and parameter count from the current distribution.
- Fail the check only on functions and files that the change touched.
- Tighten each limit once the worst existing case has been reduced.
Signals in a repository
- A lizard run in CI with length or argument limits.
- A linter setting for max-args or max-statements in the config.
- A baseline file that lists the existing oversized functions.
In practice
No scanned repository runs a tool for this check. The steps above are the only guidance.