pub trait ProjectLinter: Linter {
    // Required method
    fn run<'l>(
        &self,
        ctx: &ProjectContext<'l>,
        out: &mut LintFormatter<'l, '_>
    ) -> Result<RunStatus<'l>>;
}
Expand description

Represents a linter that checks some property for the overall project.

Linters that implement ProjectLinter will run once for the whole project.

Required Methods§

source

fn run<'l>( &self, ctx: &ProjectContext<'l>, out: &mut LintFormatter<'l, '_> ) -> Result<RunStatus<'l>>

Executes the lint against the given project context.

Implementors§