Skip to main content

plan_fixes

Function plan_fixes 

Source
pub fn plan_fixes(
    output: &[RuleSet],
    project_root: &Path,
    strategies: &BTreeMap<String, FixStrategy>,
    lang: &dyn LanguageFixProvider,
) -> Result<FixPlan>
Expand description

Build a fix plan from analysis output.

strategies is a merged map of rule ID -> fix strategy, loaded from one or more external JSON files (rule-adjacent and/or semver-analyzer generated). When no strategy is found for a rule, label-based inference is attempted, falling back to LLM-assisted fixes.

lang provides language-specific fix operations (attribute removal, matched text extraction, path skipping, dependency management).