pub struct MeaninglessNamingRule;Expand description
Detect meaningless placeholder names: foo, bar, baz, qux, test, temp, etc.
Trait Implementations§
Source§impl Rule for MeaninglessNamingRule
impl Rule for MeaninglessNamingRule
fn name(&self) -> &'static str
Source§fn check(
&self,
file_path: &Path,
syntax_tree: &File,
_content: &str,
lang: &str,
is_test_file: bool,
) -> Vec<CodeIssue>
fn check( &self, file_path: &Path, syntax_tree: &File, _content: &str, lang: &str, is_test_file: bool, ) -> Vec<CodeIssue>
Original check method (backward compatible)
Source§fn check_with_context(
&self,
file_path: &Path,
syntax_tree: &File,
content: &str,
lang: &str,
is_test_file: bool,
context: &FileContext,
_config: &ProjectConfig,
) -> Vec<CodeIssue>
fn check_with_context( &self, file_path: &Path, syntax_tree: &File, content: &str, lang: &str, is_test_file: bool, context: &FileContext, _config: &ProjectConfig, ) -> Vec<CodeIssue>
New method: check with context (recommended)
Auto Trait Implementations§
impl Freeze for MeaninglessNamingRule
impl RefUnwindSafe for MeaninglessNamingRule
impl Send for MeaninglessNamingRule
impl Sync for MeaninglessNamingRule
impl Unpin for MeaninglessNamingRule
impl UnsafeUnpin for MeaninglessNamingRule
impl UnwindSafe for MeaninglessNamingRule
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