Trait svlint::linter::SyntaxRule
source · pub trait SyntaxRule: Sync + Send {
// Required methods
fn check(
&mut self,
syntax_tree: &SyntaxTree,
event: &NodeEvent<'_>,
config: &ConfigOption
) -> SyntaxRuleResult;
fn name(&self) -> String;
fn hint(&self, config: &ConfigOption) -> String;
fn reason(&self) -> String;
// Provided method
fn into_rule(self) -> Rule
where Self: Sized + 'static { ... }
}