mdlint/format/mod.rs
1mod default;
2mod json;
3mod junit;
4mod sarif;
5
6pub use default::DefaultFormatter;
7pub use json::JsonFormatter;
8pub use junit::JunitFormatter;
9pub use sarif::SarifFormatter;
10
11use crate::lint::LintResult;
12
13pub trait Formatter {
14 fn format(&self, result: &LintResult) -> String;
15 fn supports_color(&self) -> bool {
16 false
17 }
18}