Skip to main content

apply_fixes

Function apply_fixes 

Source
pub fn apply_fixes(result: &ScanResult, dry_run: bool) -> usize
Expand description

Apply fixes from violations to source files. Returns the number of fixes applied. Fixes are targeted to the specific line where the violation occurred to avoid accidentally replacing a different occurrence of the same pattern.