sqruff_lib::cli::formatters

Trait Formatter

Source
pub trait Formatter: Send + Sync {
    // Required methods
    fn dispatch_template_header(
        &self,
        f_name: String,
        linter_config: FluffConfig,
        file_config: FluffConfig,
    );
    fn dispatch_parse_header(&self, f_name: String);
    fn dispatch_file_violations(
        &self,
        linted_file: &LintedFile,
        only_fixable: bool,
    );
    fn has_fail(&self) -> bool;
    fn completion_message(&self);
}

Required Methods§

Source

fn dispatch_template_header( &self, f_name: String, linter_config: FluffConfig, file_config: FluffConfig, )

Source

fn dispatch_parse_header(&self, f_name: String)

Source

fn dispatch_file_violations(&self, linted_file: &LintedFile, only_fixable: bool)

Source

fn has_fail(&self) -> bool

Source

fn completion_message(&self)

Implementors§