pub trait Rule {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn check(
&self,
ast: &OrbitAst,
file_path: &str,
) -> Result<Vec<Issue>, String>;
}
Expand description
Trait for lint rules
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of the rule