Trait x_lint::project::ProjectLinter
source · 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§
sourcefn run<'l>(
&self,
ctx: &ProjectContext<'l>,
out: &mut LintFormatter<'l, '_>
) -> Result<RunStatus<'l>>
fn run<'l>( &self, ctx: &ProjectContext<'l>, out: &mut LintFormatter<'l, '_> ) -> Result<RunStatus<'l>>
Executes the lint against the given project context.