Home > Services > DXCore Services – Issues

DXCore Services – Issues

July 4th, 2011

The Issues DXCore service provides methods and properties for manipulating the CodeRush Code Issues Analysis.

Methods of this service:

Method name Description
CanCheckCodeIssues Returns true if code issues can be checked inside the given text document.
CaretInside(String) Returns true if the caret is inside the specified issue.
CheckCodeIssues Returns all code issues inside the given source file.
CreateTextMarker(TextMarkerType, TextDocument, SourceRange) Creates a new text marker (code issue highlighting).
DrawIcon(Graphics, Rectangle, CodeIssueType) Draws the icon of the specified code issue onto a graphics surface.
Get(String) Returns the code issue provider with the specified name.
GetCodeSmellsInView(TextView) Returns all code issues of the code smell type inside the given text view. Note that it is hidden from Intellisense.
GetEnumerable Returns an IEnumerable implementer which enumerates a given element and all it’s children recursively.
GetFirstIssueAtCaret Returns the first code issue found at the caret position.
GetFirstIssueAtCaret( Predicate<CodeIssue>) Returns the first code issue found at the caret position.
GetIssueAfter( IEnumerable<CodeIssue>, SourcePoint) Returns the closest code issue after the given source point.
GetIssueAfter(SourceFile, SourcePoint) Returns the closest code issue after the given source point inside the specified source file.
GetIssueAfter(SourcePoint) Returns the closest code issue after the given source point inside the active document.
GetIssueBefore( IEnumerable<CodeIssue>, SourcePoint) Returns the closest code issue before the given source point.
GetIssueBefore(SourceFile, SourcePoint) Returns the closest code issue before the given source point inside the specified source file.
GetIssueBefore(SourcePoint) Returns the closest code issue before the given source point inside the active document.
GetIssuesAtPoint Returns a list of code issues at the specified source point.
GetIssuesInDocument Returns a list of code issues found in the given text document.
GetIssuesInView(TextView) Returns a list of code issues found in the given text view.
GetIssuesStorage Returns a DecoupledStorage instance for this service.
GetLastIssueAtCaret Returns the last code issue found at the caret position.
GetNextIssue(CodeIssue) Returns a code issue followed by the specified issue in the active source file.
GetPreviousIssue(CodeIssue) Returns a code issue followed before the specified issue in the active source file.
GetSuppressionScope(IElement) Returns the suppression scope for the given element.
GetWideAnalysisProgressInfo Returns theĀ  current state of the Solution Wide Analysis.
GetWorst( IEnumerable<CodeIssue>) Returns the worst code issue type inside the given list of issues.
GetWorst(SourceFile) Returns the worst code issue type inside the given source file.
GetWorst(TextDocument) Returns the worst code issue type inside the given text document.
InvalidateCache(SourceFile) Invalidates the code issues cache inside the given source file. Note that it is hidden from Intellisense.
InvalidateCache(TextDocument) Invalidates the code issues cache inside the given text document. Note that it is hidden from Intellisense.
InvalidateCodeIssueMarkers Invalidates the code issues markers inside the given text document. Note that it is hidden from Intellisense.
InvalidateSolutionUI Invalidates the code issues solution UI.
InvalidateUI Invalidates the code issues UI.
IsLanguageSupported(String) Returns true if the code issues engine supports the specified language.
IsSuppressed(CodeIssueProvider, IElement) Returns true if the specified code issue provider is suppressed for the given element.
IsSuppressed(CodeIssueProvider, ISuppressionScope) Returns true if the specified code issue provider is suppressed for the given scope.
RefreshActiveDocumentIssues Checks the active text document for code issues and updates them.
SortByRange( IEnumerable<CodeIssue>) Sorts an array of code issues by their range.
StopCalculation Stops the current code issues search if it is running. Note that it is hidden from Intellisense.

Properties:

Property name Description
CalculationIsActive Returns true if the code issues search is in progress.
CanCheckIssuesInXAML Returns true if code issues can be checked in XAML.
CodeFixHintIsActive Returns true if the code fix hint is active.
IsEnabled Returns true if the code issues analysis is enabled.
IsSolutionWide Returns true if the solution wide analysis is turned on.
Providers Returns a list of registered code issue providers.
ZoomWindowHintIsActive Returns true if the Code Issues Zoom Window hint is active.
—–
Products: DXCore
Versions: 11.1 and up
VS IDEs: any
Updated: Jul/05/2011
ID: D101

Similar Posts: