NDepend.API Documentation
AddRuleInOlderIssuesSetOnly Method
NDepend.Issue Namespace > IIssuesSetDiffBuilder Interface : AddRuleInOlderIssuesSetOnly Method
The rule and issues to add.
Add a olderRuleIssues.IRuleIssues.Rule and its olderRuleIssues.IRuleIssues.Issues to IssuesSetDiff.OlderIssuesSet only.
Syntax
void AddRuleInOlderIssuesSetOnly( 
   IRuleIssues olderRuleIssues
)

Parameters

olderRuleIssues
The rule and issues to add.
Exceptions
ExceptionDescription
Thrown if IssuesSetDiff.OlderIssuesSet already contains the olderRuleIssues.IRuleIssues.Rule.
Also thrown if an issue of olderRuleIssues.IRuleIssues.Issues have a CodeElement that doesn't belong to IssuesSetDiff.OlderIssuesSet.CodeBase.
Remarks
A IRuleIssues object can be obtained from NDepend.CodeQuery.ExtensionMethodsQuery.GetIssues.
When a rule is added or removed this.IssuesSetDiff.OlderIssuesSet and NewerIssuesSet, IIssuesSet.AllQualityGates are not recomputed. Hence the quality gates that rely on issues or debt might have a dirty state.
Requirements

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

See Also

Reference

IIssuesSetDiffBuilder Interface
IIssuesSetDiffBuilder Members