pub trait Linter: Send + Sync {
type Language: Language;
type Lint: Lint;
// Required methods
fn configure(&self, compiler: &mut Compiler);
fn lint(&self, input: &[PathBuf], compiler: &mut Compiler);
// Provided method
fn init(&self) -> Compiler { ... }
}
Expand description
Trait representing a generic linter for analyzing and reporting issues in smart contract source code files.
A linter can be implemented for any smart contract language supported by Foundry.