Trait selene_lib::lints::Lint
source · pub trait Lint {
type Config: DeserializeOwned;
type Error: Error;
const SEVERITY: Severity;
const LINT_TYPE: LintType;
// Required methods
fn new(config: Self::Config) -> Result<Self, Self::Error>
where Self: Sized;
fn pass(
&self,
ast: &Ast,
context: &Context,
ast_context: &AstContext
) -> Vec<Diagnostic>;
}
Required Associated Types§
Required Associated Constants§
Required Methods§
fn new(config: Self::Config) -> Result<Self, Self::Error>where
Self: Sized,
fn pass( &self, ast: &Ast, context: &Context, ast_context: &AstContext ) -> Vec<Diagnostic>
Object Safety§
This trait is not object safe.