pub struct RuleEngine { /* private fields */ }Implementations§
Source§impl RuleEngine
impl RuleEngine
pub fn new() -> Self
pub fn with_config(config: ProjectConfig) -> Self
Sourcepub fn check_file_with_context(
&self,
file_path: &Path,
syntax_tree: &File,
content: &str,
lang: &str,
is_test_file: bool,
) -> Vec<CodeIssue>
pub fn check_file_with_context( &self, file_path: &Path, syntax_tree: &File, content: &str, lang: &str, is_test_file: bool, ) -> Vec<CodeIssue>
Use context-aware check method (recommended)
Sourcepub fn check_file(
&self,
file_path: &Path,
syntax_tree: &File,
content: &str,
lang: &str,
is_test_file: bool,
) -> Vec<CodeIssue>
pub fn check_file( &self, file_path: &Path, syntax_tree: &File, content: &str, lang: &str, is_test_file: bool, ) -> Vec<CodeIssue>
Legacy check method (backward compatible)
pub fn rule_names(&self) -> Vec<&'static str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleEngine
impl !RefUnwindSafe for RuleEngine
impl !Send for RuleEngine
impl !Sync for RuleEngine
impl Unpin for RuleEngine
impl UnsafeUnpin for RuleEngine
impl !UnwindSafe for RuleEngine
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