New Debt since Baseline

Quality Gate Quality Gates

Fails if the effort to fix new or worsened issues (New Debt since Baseline) exceeds 2 man-days; warns if positive. Debt documentation: https://www.ndepend.com/docs/technical-debt#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="New Debt since Baseline" Unit="man-days" />
failif value > 2 man-days
warnif value > 0 man-days
let debt = Issues.Sum(i => i.Debt)
let debtInBaseline = IssuesInBaseline.Sum(i => i.Debt)
select (debt - debtInBaseline).ToManDay()


//<Desc>
// Fails if the effort to fix new or worsened issues (*New Debt since
// Baseline*) exceeds 2 man-days; warns if positive.
// Debt documentation: https://www.ndepend.com/docs/technical-debt#Debt
//</Desc>

Quality Gates: all 19 items