Nullable<DebtRating> ToDebtRating( Debt debt, ICodeElement codeElement )
Parameters
- debt
- The estimated debt to fix all issues on codeElement
- codeElement
- The code element on which we infer the rating from the debt
Return Value
The debt rating in the range DebtRating.A (very good) to DebtRating.E (very bad) or null if the method NDepend.CodeModel.ExtensionMethodsHelpers.GetNbLinesOfCode_GuaranteedIfPDBFound returns null for codeElement.