LintRule

Trait LintRule 

Source
pub trait LintRule {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn level(&self) -> DiagnosticLevel;
    fn check(
        &self,
        content: &str,
        file_path: &PathBuf,
    ) -> Result<Vec<Diagnostic>, Box<dyn Error>>;
}
Expand description

リンターールのトレイト

Required Methods§

Source

fn name(&self) -> &str

ルールの名前

Source

fn description(&self) -> &str

ルールの説明

Source

fn level(&self) -> DiagnosticLevel

診断レベル

Source

fn check( &self, content: &str, file_path: &PathBuf, ) -> Result<Vec<Diagnostic>, Box<dyn Error>>

コンテンツをチェック

Implementors§