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 { ... }
}