pub(crate) mod fast;
pub(crate) mod pipeline;
pub(crate) mod slow;
pub(crate) mod storage;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum Severity {
Praise,
Note,
Concern,
}
impl Severity {
pub(crate) fn label(self) -> &'static str {
match self {
Severity::Praise => "Praise",
Severity::Note => "Note",
Severity::Concern => "Concern",
}
}
pub(crate) fn glyph(self) -> &'static str {
match self {
Severity::Praise => "✓",
Severity::Note => "·",
Severity::Concern => "⚠",
}
}
}
#[derive(Debug, Clone, PartialEq)]
pub(crate) struct Finding {
pub severity: Severity,
pub kind: &'static str,
pub key: String,
pub message: String,
}