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.