Skip to main content

Crate fix_engine

Crate fix_engine 

Source
Expand description

Fix engine for applying pattern-based and LLM-assisted code migration fixes.

This crate provides the core fix planning and application logic:

  • language: trait for language-specific fix operations
  • context: trait for framework-specific LLM prompt customization
  • registry: registry of FixContext implementations
  • engine: pattern-based fix planning/applying (rename, removal, path change, etc.)
  • llm_client: OpenAI-compatible LLM client for AI-assisted fixes
  • goose_client: goose CLI subprocess client for AI-assisted fixes

Modulesยง

context
Fix context trait for framework/ruleset-specific LLM prompt customization.
engine
Fix engine: maps analysis violations to concrete text edits.
goose_client
Goose headless client for AI-assisted fix generation.
language
Language-specific fix provider trait.
llm_client
LLM client for AI-assisted fix generation.
registry
Registry of FixContext implementations, keyed by ruleset name.