simple_rule

Function simple_rule 

Source
pub fn simple_rule<F>(
    code: impl Into<RuleCode>,
    severity: Severity,
    message: impl Into<String>,
    check_fn: F,
) -> SimpleRule<F>
where F: Fn(&Instruction, Option<&ParsedShell>) -> bool + Send + Sync,
Expand description

Create a simple stateless rule.