Skip to main content

Crate fix_engine_core

Crate fix_engine_core 

Source
Expand description

Fix engine core types.

Defines the data model for planned fixes: text edits grouped by file, with support for pattern-based (deterministic) and LLM-assisted fixes.

Modules§

incident
Incident types representing matched violations in source code.
report
Konveyor output format types.
rule
Konveyor rule definition types.

Structs§

FixPlan
A fix plan: all planned fixes grouped by file.
FixResult
Result of applying a fix plan.
FixStrategyEntry
A machine-readable fix strategy entry.
LlmFixRequest
A request to send to the LLM for fix generation.
ManualFixItem
An incident that requires manual fixing.
MemberMappingEntry
A member-level mapping entry for structural migration strategies.
PlannedFix
A planned fix for a single incident.
RenameMapping
A rename mapping: old name -> new name. Used for prop renames, component renames, import renames, etc.
StrategyMappingEntry
A single from/to mapping within a consolidated fix strategy.
TextEdit
A single text replacement within a file.

Enums§

FixConfidence
How confident the fix guidance is.
FixSource
Where the fix guidance originates.
FixStrategy
Known fix strategies keyed by rule ID. Each entry defines how to transform incidents from that rule into text edits.

Functions§

load_strategies_and_families
Load fix strategies from a JSON file and also extract raw family-level FixStrategyEntry entries (keyed family:*) for use in family consolidation.
load_strategies_from_json
Load fix strategies from a JSON file.
strategy_entry_to_fix_strategy
Convert a FixStrategyEntry (from the shared konveyor-core crate) to a runtime FixStrategy.

Type Aliases§

StrategiesAndFamilies
Return type for load_strategies_and_families: (strategies, family_entries).