Skip to content

symfonic.diagnostics.severity

severity

Severity levels for symfonic doctor audit checks (v7.16, item 5).

Ordering: INFO < WARN < UNKNOWN < ERROR. Used by the report to compute exit codes; --strict promotes WARN only.

Severity

Bases: StrEnum

Audit-check severity.

Inherits from str (via :class:enum.StrEnum) so the JSON output (--json mode) emits the short uppercase label without a custom encoder.

rank property

rank: int

Numeric rank for comparison.

Higher means more severe. Used by :meth:AuditReport.worst_severity and the runner's exit-code calculator without exposing the internal ordering to call sites.