Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RootCommand ¶
func ValidateNewErrors ¶ added in v1.0.23
func ValidateNewErrors(baseline, current mesherr.InfoAll, baselineNext, currentNext int, out io.Writer) error
ValidateNewErrors rejects newly introduced integer error codes that are not backed by a legitimate local allocation.
Precondition: baseline must be the analysis of current's merge-base (the commit this branch forked from), NOT the current tip of the base branch. The allocation-counter checks (R2, R4) assume baseline is an ancestor of current; if baseline's own next_error_code has advanced past current's (e.g. because the base branch's post-merge allocation bot ran on unrelated PRs after this branch diverged), R2 reports a false counter regression. Callers wiring this into CI must construct baseline from the PR's merge-base, not from the base branch's tip at CI-run time.
Types ¶
This section is empty.