pub fn settled_fix<F: RepositoryFacts>(
pass: PassResult,
changed_passes: usize,
checks: &ShippedChecks<F>,
root: Option<&Path>,
) -> PassResultExpand description
What:
The result of a settled fix:
the last pass as it is,
or that pass followed by a
fix summary once its corrections were installed.
Option<&Path> is the
worktree’s top level or nothing.
Why:
Only a last pass that exits 0 installs anything,
and the summary is reported only
after a file changed.
In TS you’d write (pseudocode):
async function settledFix(pass, changedPasses, checks, root): Promise<PassResult>;