NDepend.API Documentation
RemoveRule Method (IIssuesSetDiffBuilder)
NDepend.Issue Namespace > IIssuesSetDiffBuilder Interface : RemoveRule Method
The rule to remove. It can be defined in IssuesSetDiff.NewerIssuesSet or IssuesSetDiff.OlderIssuesSet.
Remove the rule and its issues from both IssuesSetDiff.NewerIssuesSet and IssuesSetDiff.OlderIssuesSet.
Syntax
void RemoveRule( 
   IRule rule
)

Parameters

rule
The rule to remove. It can be defined in IssuesSetDiff.NewerIssuesSet or IssuesSetDiff.OlderIssuesSet.
Exceptions
ExceptionDescription
Thrown if IssuesSetDiff.NewerIssuesSet nor IssuesSetDiff.OlderIssuesSet contain the rule.
Remarks
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