QualityGatesConfig
Configures metric-delta quality gates inside the qualityGates { } block.
A gate fails aalekhCheck when a structural metric got worse than the committed baseline (aalekh-baseline.json, written by aalekhBaseline). This lets a team ratchet architecture quality in one direction only - no backsliding on a long refactor.
aalekh {
qualityGates {
// Fail the build if any of these regressed versus the baseline.
forbidRegression("cycles", "ccd", "god-modules")
severity.set(Severity.ERROR) // default ERROR; use WARNING to only report
}
}Content copied to clipboard
Valid metric keys: cycles, god-modules, ccd, tangle, instability, critical-path. Gates only fire once a baseline with a metrics snapshot exists; regenerate it with aalekhBaseline.