New Debt since Baseline (Metric)
Name suffixed with (Metric) to avoid collision with the same-named Quality Gate. Debt added (or fixed if negative) since baseline. Debt documentation: https://www.ndepend.com/docs/technical-debt#Debt
CQLinq source
This trend metric 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.
// <TrendMetric Name="New Debt since Baseline (Metric)" Unit="man-days" />
let debt = Issues.Sum(i => i.Debt)
let debtInBaseline = IssuesInBaseline.Sum(i => i.Debt)
select (debt - debtInBaseline).ToManDay()
//<Desc>
// Name suffixed with (Metric) to avoid collision with the same-named
// Quality Gate. Debt added (or fixed if negative) since baseline.
// Debt documentation: https://www.ndepend.com/docs/technical-debt#Debt
//</Desc>
Open in the interactive Rules Explorer · All default rules