MetricGateEvaluator

Compares the current graph's metrics against a committed baseline and reports any that regressed.

This generalizes the cycle-only regression check to any structural metric: teams can ratchet architecture quality in one direction only ("no backsliding"). Pure - no I/O; the baseline snapshot and current summary are supplied by the caller.

Properties

Link copied to clipboard
const val RULE_ID: String

The rule id under which metric regressions are reported. A stable public contract.

Functions

Link copied to clipboard
fun evaluate(current: MetricSnapshot, baseline: MetricSnapshot?, gates: Set<MetricGate>, severity: Severity): List<Violation>

Returns one Violation per enabled gate whose current value is worse than baseline.

Link copied to clipboard

Extracts the gate-able metrics from a computed GraphSummary.