pub struct JsFixProvider;Expand description
Language fix provider for JavaScript/TypeScript/JSX/TSX files.
Implementations§
Source§impl JsFixProvider
impl JsFixProvider
Trait Implementations§
Source§impl Default for JsFixProvider
impl Default for JsFixProvider
Source§impl LanguageFixProvider for JsFixProvider
impl LanguageFixProvider for JsFixProvider
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 JsFixProvider
impl RefUnwindSafe for JsFixProvider
impl Send for JsFixProvider
impl Sync for JsFixProvider
impl Unpin for JsFixProvider
impl UnsafeUnpin for JsFixProvider
impl UnwindSafe for JsFixProvider
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