Package org.sonar.api.batch.sensor.issue
Interface NewIssueLocation
-
- All Known Implementing Classes:
DefaultIssueLocation
public interface NewIssueLocationRepresents one issue location. SeeNewIssue.newLocation().- Since:
- 5.2
-
-
Field Summary
Fields Modifier and Type Field Description static intMESSAGE_MAX_SIZEMaximum number of characters in the message.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NewIssueLocationat(TextRange location)Position in the file.NewIssueLocationmessage(java.lang.String message)Optional, but recommended, plain-text message for this location.NewIssueLocationon(InputComponent component)TheInputComponentthe issue location belongs to.
-
-
-
Field Detail
-
MESSAGE_MAX_SIZE
static final int MESSAGE_MAX_SIZE
Maximum number of characters in the message.- See Also:
- Constant Field Values
-
-
Method Detail
-
on
NewIssueLocation on(InputComponent component)
TheInputComponentthe issue location belongs to. Mandatory.
-
at
NewIssueLocation at(TextRange location)
Position in the file. Only applicable whenon(InputComponent)has been called with an InputFile. SeeInputFile.newRange(org.sonar.api.batch.fs.TextPointer, org.sonar.api.batch.fs.TextPointer)
-
message
NewIssueLocation message(java.lang.String message)
Optional, but recommended, plain-text message for this location.
Formats like Markdown or HTML are not supported. Size must not be greater thanMESSAGE_MAX_SIZEcharacters.
-
-