Class ExtensionMethodsCQLinqIssuesSetDiff
Presents extension methods on rules and code elements, that provide a syntax friendly way to gather debt and issues data in CQLinq rules queries.
public static class ExtensionMethodsCQLinqIssuesSetDiff
- Inheritance
-
ExtensionMethodsCQLinqIssuesSetDiff
- Inherited Members
Remarks
These extension methods exist for CQLinq friendly syntax reasons and can only be called in a ICQLinqExecutionContext.
Indeed they all rely on a hidden IIssuesSetDiff object, hidden in CQLinq queries. This results in less syntax burden.
At CQLinq compilation time, the CQLinq compiler takes care of transforming calls to these extension methods into calls to methods of a IIssuesSetDiff object.
Indeed each of these extension methods, has an equivalent method defined by IIssuesSetDiff, that can be called from a program that consumes NDepend.API.
Methods (47)
AllAnnualInterestDiff(ICodeElement)
Gets NewerIssuesSet.AllAnnualInterestIn(ICodeElement) of NewerVersion<T>(T) of codeElement,
minus OlderIssuesSet.AllAnnualInterestIn(ICodeElement) of OlderVersion<T>(T) of codeElement.
public static AnnualInterest AllAnnualInterestDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
If NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null, AnnualInterest.Zero value is taken instead.
The returned AnnualInterest value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AllAnnualInterestDiffIn(ICodeElement) must be called instead.
AllAnnualInterestPercentDiff(ICodeElement)
Gets ExtensionMethodsDebtUsableInCQLinq.AnnualInterestPercent(Debt, AnnualInterest)(AllDebtDiff(ICodeElement),AllAnnualInterestDiff(ICodeElement)).
public static double AllAnnualInterestPercentDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
The returned value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AllAnnualInterestPercentDiffIn(ICodeElement) must be called instead.
AllBreakingPointDiff(ICodeElement)
Gets ExtensionMethodsDebtUsableInCQLinq.BreakingPoint(Debt, AnnualInterest)(AllDebtDiff(ICodeElement),AllAnnualInterestDiff(ICodeElement)).
public static TimeSpan AllBreakingPointDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
The returned TimeSpan value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AllBreakingPointDiffIn(ICodeElement) must be called instead.
AllDebtDiff(ICodeElement)
Gets NewerIssuesSet.AllDebtIn(ICodeElement) of NewerVersion<T>(T) of codeElement,
minus OlderIssuesSet.AllDebtIn(ICodeElement) of OlderVersion<T>(T) of codeElement.
public static Debt AllDebtDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
If NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null, Debt.Zero value is taken instead.
The returned Debt value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AllDebtDiffIn(ICodeElement) must be called instead.
AnnualInterestDiff(ICodeElement)
Gets NewerIssuesSet.AnnualInterest(ICodeElement) of NewerVersion<T>(T) of codeElement,
minus OlderIssuesSet.AnnualInterest(ICodeElement) of OlderVersion<T>(T) of codeElement.
public static AnnualInterest AnnualInterestDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
If NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null, AnnualInterest.Zero value is taken instead.
The returned AnnualInterest value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AnnualInterestDiff(ICodeElement) must be called instead.
AnnualInterestDiff(IIssue)
Gets NewerVersion(IIssue).AnnualInterest of issue,
minus OlderVersion(IIssue).AnnualInterest of issue,
public static AnnualInterest AnnualInterestDiff(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
If NewerVersion(IIssue) or OlderVersion(IIssue) of issue is null, AnnualInterest.Zero value is taken instead.
The returned AnnualInterest value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AnnualInterestDiff(IIssue) must be called instead.
AnnualInterestDiff(IRule)
Gets NewerIssuesSet.AnnualInterest(IRule) of NewerVersion(IRule) of rule,
minus OlderIssuesSet.AnnualInterest(IRule) of OlderVersion(IRule) of rule.
public static AnnualInterest AnnualInterestDiff(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Remarks
If NewerVersion(IRule) or OlderVersion(IRule) of rule is null, Debt.Zero value is taken instead.
The returned AnnualInterest value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AnnualInterestDiff(IRule) must be called instead.
AnnualInterestPercentDiff(ICodeElement)
Gets ExtensionMethodsDebtUsableInCQLinq.AnnualInterestPercent(Debt, AnnualInterest)(DebtDiff(ICodeElement),AnnualInterestDiff(ICodeElement)).
public static double AnnualInterestPercentDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
The returned value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AnnualInterestPercentDiff(ICodeElement) must be called instead.
AnnualInterestPercentDiff(IIssue)
Gets ExtensionMethodsDebtUsableInCQLinq.AnnualInterestPercent(Debt, AnnualInterest)(DebtDiff(IIssue),AnnualInterestDiff(IIssue)).
public static double AnnualInterestPercentDiff(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
The returned value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AnnualInterestPercentDiff(IIssue) must be called instead.
AnnualInterestPercentDiff(IRule)
Gets ExtensionMethodsDebtUsableInCQLinq.AnnualInterestPercent(Debt, AnnualInterest)(DebtDiff(IRule),AnnualInterestDiff(IRule)).
public static double AnnualInterestPercentDiff(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Remarks
The returned value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.AnnualInterestPercentDiff(IRule) must be called instead.
BreakingPointDiff(ICodeElement)
Gets ExtensionMethodsDebtUsableInCQLinq.BreakingPoint(Debt, AnnualInterest)(DebtDiff(ICodeElement),AnnualInterestDiff(ICodeElement)).
public static TimeSpan BreakingPointDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
The returned TimeSpan value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.BreakingPointDiff(ICodeElement) must be called instead.
BreakingPointDiff(IIssue)
Gets ExtensionMethodsDebtUsableInCQLinq.BreakingPoint(Debt, AnnualInterest)(DebtDiff(IIssue),AnnualInterestDiff(IIssue)).
public static TimeSpan BreakingPointDiff(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
The returned TimeSpan value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.BreakingPointDiff(IIssue) must be called instead.
BreakingPointDiff(IRule)
Gets ExtensionMethodsDebtUsableInCQLinq.BreakingPoint(Debt, AnnualInterest)(DebtDiff(IRule),AnnualInterestDiff(IRule)).
public static TimeSpan BreakingPointDiff(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Remarks
The returned TimeSpan value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.BreakingPointDiff(IRule) must be called instead.
DebtDiff(ICodeElement)
Gets NewerIssuesSet.Debt(ICodeElement) of NewerVersion<T>(T) of codeElement,
minus OlderIssuesSet.Debt(ICodeElement) of OlderVersion<T>(T) of codeElement.
public static Debt DebtDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
If NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null, Debt.Zero value is taken instead.
The returned Debt value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.DebtDiff(ICodeElement) must be called instead.
DebtDiff(IIssue)
Gets NewerVersion(IIssue).Debt of issue,
minus OlderVersion(IIssue).Debt of issue,
public static Debt DebtDiff(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
If NewerVersion(IIssue) or OlderVersion(IIssue) of issue is null, Debt.Zero value is taken instead.
The returned Debt value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.DebtDiff(IIssue) must be called instead.
DebtDiff(IRule)
Gets NewerIssuesSet.Debt(IRule) of NewerVersion(IRule) of rule,
minus OlderIssuesSet.Debt(IRule) of OlderVersion(IRule) of rule.
public static Debt DebtDiff(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Remarks
If NewerVersion(IRule) or OlderVersion(IRule) of rule is null, Debt.Zero value is taken instead.
The returned Debt value can be positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.DebtDiff(IRule) must be called instead.
DebtRatingChanged(ICodeElement)
Gets a value that indicates if codeElement.DebtRating(ICodeElement) is different for NewerVersion<T>(T) and OlderVersion<T>(T) of codeElement.
public static bool DebtRatingChanged(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
This methods returns false if NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null.
If codeElement.DebtRating(ICodeElement) is null for NewerVersion<T>(T) or OlderVersion<T>(T),
DebtRating.A is taken instead.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.DebtRatingChanged(ICodeElement) must be called instead.
DebtRatingImproved(ICodeElement)
Gets a value that indicates if codeElement.DebtRating(ICodeElement) is better for NewerVersion<T>(T) than for OlderVersion<T>(T) of codeElement.
public static bool DebtRatingImproved(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
This methods returns false if NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null.
If codeElement.DebtRating(ICodeElement) is null for NewerVersion<T>(T) or OlderVersion<T>(T),
DebtRating.A is taken instead.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.DebtRatingImproved(ICodeElement) must be called instead.
DebtRatingWorsened(ICodeElement)
Gets a value that indicates if codeElement.DebtRating(ICodeElement) is better for OlderVersion<T>(T) than for NewerVersion<T>(T) of codeElement.
public static bool DebtRatingWorsened(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
This methods returns false if NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null.
If codeElement.DebtRating(ICodeElement) is null for NewerVersion<T>(T) or OlderVersion<T>(T),
DebtRating.A is taken instead.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.DebtRatingWorsened(ICodeElement) must be called instead.
DebtRatioDiff(ICodeElement)
Gets NewerIssuesSet.DebtRatio(ICodeElement) of NewerVersion<T>(T) of codeElement,
minus OlderIssuesSet.DebtRatio(ICodeElement) of OlderVersion<T>(T) of codeElement.
public static double? DebtRatioDiff(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
If NewerVersion<T>(T) or OlderVersion<T>(T) of codeElement is null, this method returns null.
If NewerIssuesSet.DebtRatio(ICodeElement) of NewerVersion<T>(T) of codeElement,
or OlderIssuesSet.DebtRatio(ICodeElement) of OlderVersion<T>(T) of codeElement
is null, this method returns null.
The returned value can be null or else, positive, zero or negative.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.DebtRatioDiff(ICodeElement) must be called instead.
IsInNewerIssuesSet(IIssue)
Gets a value that indicates if issue is in NewerIssuesSet.
public static bool IsInNewerIssuesSet(this IIssue issue)
Parameters
issueIIssueThe issue.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsInNewerIssuesSet(IIssue) must be called instead.
IsInNewerIssuesSet(IQualityGate)
Gets a value that indicates if qualityGate is in NewerIssuesSet.
public static bool IsInNewerIssuesSet(this IQualityGate qualityGate)
Parameters
qualityGateIQualityGateThe quality gate.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsInNewerIssuesSet(IQualityGate) must be called instead.
IsInNewerIssuesSet(IRule)
Gets a value that indicates if rule is in NewerIssuesSet.
public static bool IsInNewerIssuesSet(this IRule rule)
Parameters
ruleIRuleThe rule.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsInNewerIssuesSet(IRule) must be called instead.
IsInOlderIssuesSet(IIssue)
Gets a value that indicates if issue is in OlderIssuesSet.
public static bool IsInOlderIssuesSet(this IIssue issue)
Parameters
issueIIssueThe issue.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsInOlderIssuesSet(IIssue) must be called instead.
IsInOlderIssuesSet(IQualityGate)
Gets a value that indicates if qualityGate is in OlderIssuesSet.
public static bool IsInOlderIssuesSet(this IQualityGate qualityGate)
Parameters
qualityGateIQualityGateThe quality gate.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsInOlderIssuesSet(IQualityGate) must be called instead.
IsInOlderIssuesSet(IRule)
Gets a value that indicates if rule is in OlderIssuesSet.
public static bool IsInOlderIssuesSet(this IRule rule)
Parameters
ruleIRuleThe rule.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsInOlderIssuesSet(IRule) must be called instead.
IsNotViolatedAnymore(IRule)
Gets a value that indicates if rule is present in both NewerIssuesSet and OlderIssuesSet and is violated in OlderIssuesSet and not in NewerIssuesSet.
public static bool IsNotViolatedAnymore(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsNotViolatedAnymore(IRule) must be called instead.
IsPresentInBothIssuesSet(IIssue)
Gets a value that indicates if issue is in NewerIssuesSet or OlderIssuesSet and has an equivalent in the other issues-set.
public static bool IsPresentInBothIssuesSet(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsPresentInBothIssuesSet(IIssue) must be called instead.
IsPresentInBothIssuesSet(IQualityGate)
Gets a value that indicates if qualityGate is in NewerIssuesSet or OlderIssuesSet and has an equivalent in the other issues-set.
public static bool IsPresentInBothIssuesSet(this IQualityGate qualityGate)
Parameters
qualityGateIQualityGateThe quality gate object can be the NewerVersion(IQualityGate) or OlderVersion(IQualityGate) of the same quality gate.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsPresentInBothIssuesSet(IQualityGate) must be called instead.
IsPresentInBothIssuesSet(IRule)
Gets a value that indicates if rule is in NewerIssuesSet or OlderIssuesSet and has an equivalent in the other issues-set.
public static bool IsPresentInBothIssuesSet(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IsPresentInBothIssuesSet(IRule) must be called instead.
IssuesAdded(ICodeElement)
Gets all issues on codeElement that have no equivalent in OlderIssuesSet. These issues are considered as added.
public static IEnumerable<IIssue> IssuesAdded(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
The issues of NewerIssuesSet and OlderIssuesSet are paired when they share the same Rule and the same CodeElement.
If OlderVersion<T>(T) of codeElement is null, all issues on codeElement are returned.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IssuesAdded(ICodeElement) must be called instead.
IssuesAdded(IRule)
Gets all issues of rule that have no equivalent in OlderIssuesSet. These issues are considered as added.
public static IEnumerable<IIssue> IssuesAdded(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Remarks
The issues of NewerIssuesSet and OlderIssuesSet are paired when they share the same Rule and the same CodeElement.
If OlderVersion(IRule) of rule is null, all issues of rule are returned.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IssuesAdded(IRule) must be called instead.
IssuesFixed(ICodeElement)
Gets all issues on codeElement that have no equivalent in NewerIssuesSet. These issues are considered as fixed.
public static IEnumerable<IIssue> IssuesFixed(this ICodeElement codeElement)
Parameters
codeElementICodeElementThe code element object can be the NewerVersion<T>(T) or OlderVersion<T>(T) of the same code element.
Returns
Remarks
The issues of NewerIssuesSet and OlderIssuesSet are paired when they share the same Rule and the same CodeElement.
If NewerVersion<T>(T) of codeElement is null, all issues on codeElement are returned.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IssuesFixed(ICodeElement) must be called instead.
IssuesFixed(IRule)
Gets all issues of rule that have no equivalent in NewerIssuesSet. These issues are considered as fixed.
public static IEnumerable<IIssue> IssuesFixed(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Remarks
The issues of NewerIssuesSet and OlderIssuesSet are paired when they share the same Rule and the same CodeElement.
If NewerVersion(IRule) of rule is null, all issues of rule are returned.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.IssuesFixed(IRule) must be called instead.
NewerVersion(IIssue)
Gets the issue in NewerIssuesSet, or null if issue has no equivalent in NewerIssuesSet.
public static IIssue NewerVersion(this IIssue issue)
Parameters
issueIIssueThe issue.
Returns
Remarks
If issue is already in NewerIssuesSet, this method returns it.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.NewerVersion(IIssue) must be called instead.
NewerVersion(IQualityGate)
Gets the qualityGate in NewerIssuesSet, or null if qualityGate has no equivalent in NewerIssuesSet.
public static IQualityGate NewerVersion(this IQualityGate qualityGate)
Parameters
qualityGateIQualityGateThe quality gate.
Returns
Remarks
If qualityGate is already in NewerIssuesSet, this method returns it.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.NewerVersion(IQualityGate) must be called instead.
NewerVersion(IRule)
Gets the rule in NewerIssuesSet, or null if rule has no equivalent in NewerIssuesSet.
public static IRule NewerVersion(this IRule rule)
Parameters
ruleIRuleThe rule.
Returns
Remarks
If rule is already in NewerIssuesSet, this method returns it.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.NewerVersion(IRule) must be called instead.
OlderVersion(IIssue)
Gets the issue in OlderIssuesSet, or null if issue has no equivalent in OlderIssuesSet.
public static IIssue OlderVersion(this IIssue issue)
Parameters
issueIIssueThe issue.
Returns
Remarks
If issue is already in OlderIssuesSet, this method returns it.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.OlderVersion(IIssue) must be called instead.
OlderVersion(IQualityGate)
Gets the qualityGate in OlderIssuesSet, or null if qualityGate has no equivalent in OlderIssuesSet.
public static IQualityGate OlderVersion(this IQualityGate qualityGate)
Parameters
qualityGateIQualityGateThe quality gate.
Returns
Remarks
If qualityGate is already in OlderIssuesSet, this method returns it.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.OlderVersion(IQualityGate) must be called instead.
OlderVersion(IRule)
Gets the rule in OlderIssuesSet, or null if rule has no equivalent in OlderIssuesSet.
public static IRule OlderVersion(this IRule rule)
Parameters
ruleIRuleThe rule.
Returns
Remarks
If rule is already in OlderIssuesSet, this method returns it.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.OlderVersion(IRule) must be called instead.
SeverityChanged(IIssue)
Gets a value that indicates if issue.Severity is different for NewerVersion(IIssue) and OlderVersion(IIssue) of issue.
public static bool SeverityChanged(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
This methods returns false if NewerVersion(IIssue) or OlderVersion(IIssue) of issue is null.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.SeverityChanged(IIssue) must be called instead.
SeverityDecreased(IIssue)
Gets a value that indicates if issue.Severity has decreased between NewerVersion(IIssue) and OlderVersion(IIssue) of issue.
public static bool SeverityDecreased(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
This methods returns false if NewerVersion(IIssue) or OlderVersion(IIssue) of issue is null.
Severity decrease means for example that Severity.Low is considered less severe than Severity.Blocker.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.SeverityDecreased(IIssue) must be called instead.
SeverityIncreased(IIssue)
Gets a value that indicates if issue.Severity has increased between NewerVersion(IIssue) and OlderVersion(IIssue) of issue.
public static bool SeverityIncreased(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
This methods returns false if NewerVersion(IIssue) or OlderVersion(IIssue) of issue is null.
Severity increase means for example that Severity.Blocker is considered more severe than Severity.Low.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.SeverityIncreased(IIssue) must be called instead.
ValueDiff(IQualityGate)
Gets the Value of NewerVersion(IQualityGate) of qualityGate,
minus the Value of OlderVersion(IQualityGate) of qualityGate.
public static double? ValueDiff(this IQualityGate qualityGate)
Parameters
qualityGateIQualityGateThe quality gate object can be the NewerVersion(IQualityGate) or OlderVersion(IQualityGate) of the same quality gate.
Returns
Remarks
If the older or newer value is null returns null.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.ValueDiff(IQualityGate) must be called instead.
WasAdded(IIssue)
Gets a value that indicates if issue is present in NewerIssuesSet and has no equivalent in OlderIssuesSet. It is then considered as an issue added.
public static bool WasAdded(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
If issue is the OlderVersion(IIssue) of the issue, this method returns false.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.WasAdded(IIssue) must be called instead.
WasFixed(IIssue)
Gets a value that indicates if issue is present in OlderIssuesSet and has no equivalent in NewerIssuesSet. It is then considered as a fixed issue.
public static bool WasFixed(this IIssue issue)
Parameters
issueIIssueThe issue object can be the NewerVersion(IIssue) or OlderVersion(IIssue) of the same issue.
Returns
Remarks
If issue is the NewerVersion(IIssue) of the issue, this method returns false.
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.WasFixed(IIssue) must be called instead.
WasNotViolatedAndIsViolated(IRule)
Gets a value that indicates if rule is present in both NewerIssuesSet and OlderIssuesSet and is violated in NewerIssuesSet and not in OlderIssuesSet.
public static bool WasNotViolatedAndIsViolated(this IRule rule)
Parameters
ruleIRuleThe rule object can be the NewerVersion(IRule) or OlderVersion(IRule) of the same rule.
Returns
Exceptions
- NotImplementedException
This extension method cannot be called from a program consuming NDepend.API. In such context, the method IIssuesSetDiff.WasNotViolatedAndIsViolated(IRule) must be called instead.