pub enum Severity {
Block,
Warn,
}Expand description
Whether a failing check stops the commit or merely reports.
Declared per check and overridable per repository with
git config amont.severity.<check> warn. That is a better escape hatch
than hook.skip, which is all-or-nothing and invisible enough that
hook.skip = e disables all twenty checks: a downgrade keeps the signal and
removes only the block.
Variants§
Implementations§
Source§impl Severity
impl Severity
Sourcepub fn parse(value: &str) -> Option<Severity>
pub fn parse(value: &str) -> Option<Severity>
The ONE mapping from configured text to severity.
There were four: this key’s reader, the manifest’s severity column, the
dashboard’s copy, and the dashboard’s reverse mapping for --json. They
agreed, but nothing made them — and the dashboard’s copy is its
prediction of what the dispatcher will do, which is the one thing it must
never get wrong.
None for anything else, deliberately: git validates nothing here, so an
unrecognised value must fall back to the declared severity rather than
silently disable a check.