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

Parameters

newerRuleIssues
The rule and issues to add.
Exceptions
ExceptionDescription
Thrown if IssuesSetDiff.NewerIssuesSet already contains the newerRuleIssues.IRuleIssues.Rule.
Also thrown if an issue of newerRuleIssues.IRuleIssues.Issues have a CodeElement that doesn't belong to IssuesSetDiff.NewerIssuesSet.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