Skip to main content

mdlint/format/
mod.rs

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