Awesome Reviewers

Verification · Static analysis · Complexity limits

Size budgets

Limits on function, file and parameter counts.

How to build it

  1. Choose limits for function length, file length and parameter count from the current distribution.
  2. Fail the check only on functions and files that the change touched.
  3. 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.