pub struct NoOpLanguageFixProvider;Expand description
No-op fallback provider for languages without specific fix support.
Skips no paths, performs no post-processing, and returns None / empty
defaults for all language-specific operations. The engine still applies
generic strategies (text replacement renames, import path changes, etc.).
Trait Implementations§
Source§impl LanguageFixProvider for NoOpLanguageFixProvider
impl LanguageFixProvider for NoOpLanguageFixProvider
Source§fn should_skip_path(&self, _path: &Path) -> bool
fn should_skip_path(&self, _path: &Path) -> bool
Should this file path be skipped during fix planning? Read more
Source§fn post_process_lines(&self, _lines: &mut [String])
fn post_process_lines(&self, _lines: &mut [String])
Post-process lines after edits have been applied. Read more
Source§fn plan_remove_attribute(
&self,
_rule_id: &str,
_incident: &Incident,
_file_path: &Path,
) -> Option<PlannedFix>
fn plan_remove_attribute( &self, _rule_id: &str, _incident: &Incident, _file_path: &Path, ) -> Option<PlannedFix>
Plan an attribute/prop removal fix. Read more
Source§fn plan_ensure_dependency(
&self,
_rule_id: &str,
_incident: &Incident,
_package: &str,
_new_version: &str,
_file_path: &Path,
) -> Vec<PlannedFix>
fn plan_ensure_dependency( &self, _rule_id: &str, _incident: &Incident, _package: &str, _new_version: &str, _file_path: &Path, ) -> Vec<PlannedFix>
Plan dependency version fix(es). Read more
Source§fn get_matched_text(&self, _incident: &Incident) -> String
fn get_matched_text(&self, _incident: &Incident) -> String
Extract the matched text from incident variables. Read more
Source§fn get_matched_text_for_rename(
&self,
_incident: &Incident,
_mappings: &[RenameMapping],
) -> String
fn get_matched_text_for_rename( &self, _incident: &Incident, _mappings: &[RenameMapping], ) -> String
Get the matched text for rename operations. Read more
Source§fn is_whole_file_rename(&self, _incident: &Incident) -> bool
fn is_whole_file_rename(&self, _incident: &Incident) -> bool
Whether a rename incident requires whole-file scanning. Read more
Auto Trait Implementations§
impl Freeze for NoOpLanguageFixProvider
impl RefUnwindSafe for NoOpLanguageFixProvider
impl Send for NoOpLanguageFixProvider
impl Sync for NoOpLanguageFixProvider
impl Unpin for NoOpLanguageFixProvider
impl UnsafeUnpin for NoOpLanguageFixProvider
impl UnwindSafe for NoOpLanguageFixProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more