Trait x_lint::file_path::FilePathLinter
source · 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.