Breaking Point
The breaking point of a set of issues is the debt (estimated cost-to-fix) divided by the annual interest (estimated yearly cost-to-not-fix): the point in time when not fixing costs as much as fixing. Documentation: https://www.ndepend.com/docs/technical-debt#BreakingPoint
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="Breaking Point" Unit="years"/>
(Issues.Sum(i =>i.Debt).BreakingPoint(Issues.Sum(i =>i.AnnualInterest))).TotalYears()
// <Desc>
// The **breaking point** of a set of issues is the **debt** (estimated
// cost-to-fix) divided by the **annual interest** (estimated yearly
// cost-to-**not**-fix): the point in time when not fixing costs as much as
// fixing. Documentation:
// https://www.ndepend.com/docs/technical-debt#BreakingPoint
// </Desc>
Open in the interactive Rules Explorer · All default rules