pub trait FilePathLinter: Linter {
// Required method
fn run<'l>(
&self,
ctx: &FilePathContext<'l>,
out: &mut LintFormatter<'l, '_>,
) -> Result<RunStatus<'l>>;
}Expand description
Represents a linter that runs once per file path.
Required Methods§
Sourcefn run<'l>(
&self,
ctx: &FilePathContext<'l>,
out: &mut LintFormatter<'l, '_>,
) -> Result<RunStatus<'l>>
fn run<'l>( &self, ctx: &FilePathContext<'l>, out: &mut LintFormatter<'l, '_>, ) -> Result<RunStatus<'l>>
Executes this linter against the given file path context.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".