Expand description
Fix engine: maps analysis violations to concrete text edits.
Two-tier approach:
- Pattern-based: deterministic renames/removals driven by incident variables
- LLM-assisted: complex structural changes sent to an LLM endpoint
The engine is language-agnostic. Language-specific operations (attribute
removal, import deduplication, path skipping, dependency management) are
delegated to a LanguageFixProvider
implementation.
Functionsยง
- apply_
fixes - Apply a fix plan to disk.
- consolidate_
family_ requests - Consolidate LLM fix requests by component family when a family-level
strategy exists. Multiple rules targeting the same
(file, family)are merged into a single request with a unified message containing the target component structure and all incident variables. - plan_
fixes - Build a fix plan from analysis output.
- preview_
fixes - Generate a unified diff preview of the planned changes.