Package org.sonar.plugins.jcl.api.checks
Interface CheckContext
public interface CheckContext
Context used to report issues.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreportIssue(HasTextRange hasTextRange, String message) Report an issue.voidreportIssue(HasTextRange hasTextRange, String message, List<SecondaryLocation> secondaryLocations) Report an issue.voidreportIssue(TextRange textRange, String message) Report an issue.voidreportIssue(TextRange textRange, String message, List<SecondaryLocation> secondaryLocations) Report an issue.
-
Method Details
-
reportIssue
Report an issue.- Parameters:
hasTextRange- the tree node to which the issue is attachedmessage- the message of the issue
-
reportIssue
Report an issue.- Parameters:
textRange- the text range to which the issue is attachedmessage- the message of the issue
-
reportIssue
void reportIssue(HasTextRange hasTextRange, String message, List<SecondaryLocation> secondaryLocations) Report an issue.- Parameters:
hasTextRange- the tree node to which the issue is attachedmessage- the message of the issuesecondaryLocations- the list of secondary locations attached to the issue
-
reportIssue
Report an issue.- Parameters:
textRange- the text range to which the issue is attachedmessage- the message of the issuesecondaryLocations- the list of secondary locations attached to the issue
-