pub trait GenericRule: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn check_content(
&self,
file_path: &Path,
content: &str,
lang: &str,
) -> Vec<CodeIssue>;
}Expand description
A language-agnostic code quality rule that works on raw text content.
Kept as fallback for languages without tree-sitter grammar.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".