New Annual Interest since Baseline

Quality Gate Quality Gates

Fails if the Annual-Interest (estimated annual cost of leaving all issues unfixed) increased by more than 2 man-days since baseline; warns if positive. It is computed per issue by a rule formula, or from a Severity level via thresholds in Project Properties > Issue and Debt. Annual Interest documentation: https://www.ndepend.com/docs/technical-debt#AnnualInterest

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 Annual Interest since Baseline" Unit="man-days" />
failif value > 2 man-days
warnif value > 0 man-days
let ai = Issues.Sum(i => i.AnnualInterest)
let aiInBaseline = IssuesInBaseline.Sum(i => i.AnnualInterest)
select (ai - aiInBaseline).ToManDay()

//<Desc>
// Fails if the **Annual-Interest** (estimated annual cost of leaving all
// issues unfixed) increased by more than 2 man-days since baseline; warns if
// positive. It is computed per issue by a rule formula, or from a **Severity**
// level via thresholds in *Project Properties > Issue and Debt*.
// Annual Interest documentation: https://www.ndepend.com/docs/technical-debt#AnnualInterest
//</Desc>

Quality Gates: all 19 items