Trait OutputFormatter

Source
pub trait OutputFormatter:
    Send
    + Sync
    + Debug {
    // Required methods
    fn id(&self) -> &'static str;
    fn format(
        &self,
        output: &[LintOutput],
        metadata: &ConfigMetadata,
    ) -> Result<String>;
    fn should_log_metadata(&self) -> bool;

    // Provided method
    fn get_summary(&self, output: &[LintOutput]) -> OutputSummary { ... }
}

Required Methods§

Source

fn id(&self) -> &'static str

Source

fn format( &self, output: &[LintOutput], metadata: &ConfigMetadata, ) -> Result<String>

Source

fn should_log_metadata(&self) -> bool

Provided Methods§

Source

fn get_summary(&self, output: &[LintOutput]) -> OutputSummary

Implementors§