Skip to main content

run_direct_fix

Function run_direct_fix 

Source
pub fn run_direct_fix<F: RepositoryFacts>(
    request: &StageRequest,
    checks: &mut ShippedChecks<F>,
    root: Option<&Path>,
) -> PassResult
Expand description

What: Run a whole direct fix and return what it reports. root is the worktree’s top level, where corrected files are installed. Why: See the module comment.

In TS you’d write (pseudocode):

async function runDirectFix(request, checks, root): Promise<PassResult>;