NDepend.API Documentation
SetRatingThresholds Method
NDepend.TechnicalDebt Namespace > DebtSettings Class : SetRatingThresholds Method
The A to B rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
The B to C rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
The C to D rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
The D to E rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
Set the various thresholds used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value in the range of 'A' 'B' 'C' 'D' 'E', from the Debt Ratio of a code element.
Syntax
public void SetRatingThresholds( 
   double a2b,
   double b2c,
   double c2d,
   double d2e
)

Parameters

a2b
The A to B rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
b2c
The B to C rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
c2d
The C to D rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
d2e
The D to E rating threshold of technical debt, used to infer the IDebtFormatter.IDebtFormatter.ToDebtRating character value, from the percentage of technical debt of a code element.
Remarks
The IDebtFormatter.IDebtFormatter.ToDebtRating method returns a character in the range 'A' 'B' 'C' 'D' 'E'.
This rating value is obtained from the ratio of technical debt of the code element, and the various thresholds assigned by this method.
Requirements

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

See Also

Reference

DebtSettings Class
DebtSettings Members