Skip to main content

LintRule

Trait LintRule 

Source
pub trait LintRule: Send + Sync {
    // Required method
    fn definition(&self) -> &LintDefinition;

    // Provided methods
    fn check_list(&self, _context: &ListLintContext<'_>) -> Vec<LintFinding> { ... }
    fn check_response(
        &self,
        _context: &ResponseLintContext<'_>,
    ) -> Vec<LintFinding> { ... }
    fn check_run(&self, _context: &RunLintContext<'_>) -> Vec<LintFinding> { ... }
}
Expand description

Trait for implementing lint checks.

Required Methods§

Provided Methods§

Source

fn check_list(&self, _context: &ListLintContext<'_>) -> Vec<LintFinding>

Source

fn check_response(&self, _context: &ResponseLintContext<'_>) -> Vec<LintFinding>

Source

fn check_run(&self, _context: &RunLintContext<'_>) -> Vec<LintFinding>

Implementors§