pub trait Rule<E>: Debug + Sync {
// Required methods
fn code(&self) -> Code;
fn tags(&self) -> TagSet;
fn body(&self) -> &'static str;
fn check(&self, tree: E) -> Result;
// Provided method
fn name(&self) -> String { ... }
}
Expand description
A lint rule.
Required Methods§
Get the lint tags for this lint rule.