Skip to main content

fix_paths

Function fix_paths 

Source
pub fn fix_paths(
    paths: &[PathBuf],
    rules: &[Rule],
    config: &Config,
    baseline: Option<&Baseline>,
    baseline_root: &Path,
) -> Result<FixReport, ScanError>
Expand description

Apply the autofix-safe rewrites over paths.

Nothing is written here: FileFix carries the before/after text so the caller can print a diff (--dry-run) or persist the change. baseline suppresses rewrites already recorded against baseline_root.