NDepend.API Documentation
CostToReachRating Method (IDebtFormatter)
NDepend.TechnicalDebt Namespace > IDebtFormatter Interface : CostToReachRating Method
The estimated debt to fix all issues on codeElement
The code element on which we infer the rating from the debt
The rating to reach for codeElement
Returns the estimated effort to reach ratingToReach, based on the fact that codeElement has actually a total debt estimated to debt.
Syntax

Parameters

debt
The estimated debt to fix all issues on codeElement
codeElement
The code element on which we infer the rating from the debt
ratingToReach
The rating to reach for codeElement
Remarks
If the actual rating of codeElement given debt is equals or better than ratingToReach, this method returns a zero duration Debt value.
If ToDebtRatio returns null for codeElement, this method returns null.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IDebtFormatter Interface
IDebtFormatter Members