pub trait LintRule: Send + Sync {
// Required methods
fn code(&self) -> &'static str;
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn check(&self, stmt: &Statement, ctx: &LintContext<'_>) -> Vec<Issue>;
// Provided method
fn sqlfluff_name(&self) -> &'static str { ... }
}Expand description
A single lint rule that checks a parsed SQL statement for anti-patterns.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Longer description of what this rule checks.
Provided Methods§
Sourcefn sqlfluff_name(&self) -> &'static str
fn sqlfluff_name(&self) -> &'static str
SQLFluff dotted identifier (e.g., aliasing.table).