Expand description
The error-severity rule: whether a dead-code result holds a finding whose
effective severity is error.
This rule decides the exit code of dead-code and check, the
error-severity-findings gate entry, the combined verdict and the audit
summary. Every caller reads it from here, so a finding cannot fail one
command and pass another.
Functionsยง
- has_
error_ severity_ issues - Check whether any issue type with
Severity::Errorhas remaining issues. - promote_
policy_ finding_ warns - Promote per-finding
warnpolicy-violation severities toerrorfor a strict (fail-on-issues) run. Policy findings carry their effective severity baked by the evaluator, so the rule-level promotion inpromote_warns_to_errorsalone would not flip findings whose rule explicitly opted down towarn; under strict mode every warning fails. - promote_
warns_ to_ errors - Promote all
Warnseverities toErrorfor a single run.