Critical Issues

Quality Gate Quality Gates

A Critical issue shouldn't move to production (it can for business imperatives) but must be fixed during the next iterations.

Severity is defined in the rule source code or inferred from the issue annual interest and thresholds in Project Properties > Issue and Debt.

CQLinq source

This quality gate is written in CQLinq, C# LINQ over the NDepend code model. It ships with every new NDepend project: you can read it, adapt it, or use it as a starting point for your own custom rules.

// <QualityGate Name="Critical Issues" Unit="issues" />
failif count > 10 issues
warnif count > 0 issues

from i in Issues
where i.Severity == Severity.Critical
select new { i, i.Severity, i.Debt, i.AnnualInterest }

//<Desc>
// A **Critical** issue shouldn't move to production (it can for business
// imperatives) but must be fixed during the next iterations.
//
// Severity is defined in the rule source code or inferred from the issue
// *annual interest* and thresholds in Project Properties > Issue and Debt.
//</Desc>

Quality Gates: all 19 items