New Annual Interest since Baseline (Metric)
Name suffixed with (Metric) to avoid collision with the same-named Quality Gate. Annual Interest added (or fixed if negative) since baseline. Annual Interest documentation: https://www.ndepend.com/docs/technical-debt#AnnualInterest
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 Annual Interest since Baseline (Metric)" Unit="man-days" />
let ai = Issues.Sum(i => i.AnnualInterest)
let aiInBaseline = IssuesInBaseline.Sum(i => i.AnnualInterest)
select (ai - aiInBaseline).ToManDay()
//<Desc>
// Name suffixed with (Metric) to avoid collision with the same-named
// Quality Gate. Annual Interest added (or fixed if negative) since baseline.
// Annual Interest documentation: https://www.ndepend.com/docs/technical-debt#AnnualInterest
//</Desc>
Open in the interactive Rules Explorer · All default rules
Trend Metrics / Debt: all 7 items
- Percentage Debt (Metric)
- Debt (Metric)
- New Debt since Baseline (Metric)
- Annual Interest (Metric)
- New Annual Interest since Baseline (Metric)
- Breaking Point
- Breaking Point of Blocker / Critical / High Issues