Issues to Fix Priority

Code Query Hot Spots

Lists issues per increasing Debt Breaking Point: the duration from now when the cost of leaving the issue unfixed (Annual Interest) equals the fix effort (Debt). The shorter, the higher the fix ROI. Double-click an issue to edit its rule and see all its information.

Issues on new/refactored code since baseline often come first: they get a higher Annual Interest since new issues should be fixed first.

More documentation: https://www.ndepend.com/docs/technical-debt

CQLinq source

This code query 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.

// <Name>Issues to Fix Priority</Name>
from i in Issues
// Don't show first issues with BreakingPoint equals to zero.
orderby i.BreakingPoint != TimeSpan.Zero ? i.BreakingPoint : TimeSpan.MaxValue
select new { i, 
   Debt = i.Debt,
   AnnualInterest = i.AnnualInterest,
   BreakingPoint = i.BreakingPoint,
   CodeElement = i.CodeElement
}

//<Desc>
// Lists issues per increasing **Debt Breaking Point**: the duration from now
// when the cost of leaving the issue unfixed (*Annual Interest*) equals the
// fix effort (*Debt*). The shorter, the higher the fix ROI. Double-click an
// issue to edit its rule and see all its information.
//
// Issues on new/refactored code since baseline often come first: they get a
// higher *Annual Interest* since new issues should be fixed first.
//
// More documentation: https://www.ndepend.com/docs/technical-debt
//</Desc>

Hot Spots: all 7 items