Skip to main content

Rule

Trait Rule 

Source
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.

Required Methods§

Source

fn name(&self) -> &'static str

Human-readable name for this rule.

Source

fn check(&self, config: &Config) -> Vec<Finding>

Check the config and return any findings.

Implementors§