Trait tan_lints::Lint

source ·
pub trait Lint {
    // Required methods
    fn name(&self) -> String;
    fn run(&mut self, exprs: &[Expr]);
}

Required Methods§

source

fn name(&self) -> String

A unique name for the lint.

source

fn run(&mut self, exprs: &[Expr])

Runs after the parsing pass.

Implementors§