Module fix_utils

Module fix_utils 

Source
Expand description

Utilities for applying fixes consistently between CLI and LSP

This module provides shared logic for applying markdown fixes to ensure that both CLI batch fixes and LSP individual fixes produce identical results.

Functionsยง

apply_warning_fixes
Apply a list of warning fixes to content, simulating how the LSP client would apply them This is used for testing consistency between CLI and LSP fix methods
validate_fix_range
Helper function to validate that a fix range makes sense in the context
warning_fix_to_edit
Convert a single warning fix to a text edit-style representation This helps validate that individual warning fixes are correctly structured