NDepend.API Documentation
DebtRating Method (IIssuesSet)
NDepend.Issue Namespace > IIssuesSet Interface : DebtRating Method
The code element on which we infer the rating.
Gets the debt rating of codeElement in the range NDepend.TechnicalDebt.DebtRating.A (very good) to NDepend.TechnicalDebt.DebtRating.E (very bad).
Syntax

Parameters

codeElement
The code element on which we infer the rating.
Exceptions
ExceptionDescription
Thrown if the codeElement doesn't belong to CodeBase.
Remarks
The debt to infer the rating is obtained through AllDebtIn(ICodeElement)(codeElement).
This method implementation calls this.DebtFormatter.NDepend.TechnicalDebt.IDebtFormatter.ToDebtRating.
This method returns null if this.DebtFormatter.NDepend.TechnicalDebt.IDebtFormatter.ToDebtRatio(codeElement) 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

IIssuesSet Interface
IIssuesSet Members