pub trait Rule {
// Required methods
fn name(&self) -> &'static str;
fn check(&self, config: &Config) -> Vec<Finding>;
}Expand description
A lint rule that checks a parsed config.
pub trait Rule {
// Required methods
fn name(&self) -> &'static str;
fn check(&self, config: &Config) -> Vec<Finding>;
}A lint rule that checks a parsed config.