New and changed code is checked against the base (merge-base with the integration branch): every added or touched function and every added or changed line must be within the limits, unless limits-allowlist.json lists the function with a reason and an owner; an allowlisted function may only shrink. The legacy that exists today is a per-crate census in limits-baseline.json whose totals may only fall (same --update-baseline semantics as the architecture gate). Rust is measured from the rustsplit lexer, the gate's own Python from ast. 56 self-tests, including a temporary git repository.
5 lines
354 B
JSON
5 lines
354 B
JSON
{
|
|
"_comment": "Functions that may miss a limit of scripts/check-limits.py because they were moved verbatim from legacy code. Every recorded number may only fall; an entry whose function is back within the limits is stale and must go (scripts/check-limits.py --update-baseline). New entries: --allowlist-add --reason ... --owner ...",
|
|
"functions": []
|
|
}
|