Critical Rules Violated

Quality Gate Quality Gates

Fails if any critical rule is violated. Critical rules (made so via the Critical button in the rule edition control) should never be violated.

Without a baseline, rules relying on diff are not counted, which can explain an unexpected slight decrease of this count.

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 Rules Violated" Unit="rules" />
failif count > 0 rules
from r in Rules where r.IsCritical && r.IsViolated()
select new { r, issues = r.Issues() }

//<Desc>
// Fails if any critical rule is violated. Critical rules (made so via the
// *Critical button* in the rule edition control) should never be violated.
//
// Without a baseline, rules relying on diff are not counted, which can
// explain an unexpected slight decrease of this count.
//</Desc>

Quality Gates: all 19 items