NDepend.API Documentation
HasDebt Method (ExtensionMethodsCQLinqIssuesSet)
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqIssuesSet Class : HasDebt Method
The code element.
Gets a value indicating whether the codeElement has debt or not.
Syntax
[Extension()]
public static bool HasDebt( 
   ICodeElement codeElement
)

Parameters

codeElement
The code element.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.Issue.IIssuesSet.NDepend.Issue.IIssuesSet.HasDebt must be called instead.
Remarks
If codeElement has only issues with Debt.NDepend.TechnicalDebt.Debt.Zero, this getter returns false. This property getter has a constant time complexity.
Requirements

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

See Also

Reference

ExtensionMethodsCQLinqIssuesSet Class
ExtensionMethodsCQLinqIssuesSet Members