public interface Issue extends Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_MAX_SIZE
Maximum number of characters in the message.
|
static String |
RESOLUTION_FALSE_POSITIVE
Resolution when issue is flagged as false positive.
|
static String |
RESOLUTION_FIXED |
static String |
RESOLUTION_REMOVED
Resolution when rule has been uninstalled or disabled in the Quality profile.
|
static String |
RESOLUTION_WONT_FIX
Issue is irrelevant in the context and was muted by user.
|
static List<String> |
RESOLUTIONS |
static String |
STATUS_CLOSED |
static String |
STATUS_CONFIRMED |
static String |
STATUS_OPEN
Default status when creating an issue.
|
static String |
STATUS_REOPENED |
static String |
STATUS_RESOLVED |
static List<String> |
STATUSES
Return all available statuses
|
Modifier and Type | Method and Description |
---|---|
String |
actionPlanKey()
Deprecated.
since 5.5 Action plans are dropped in 5.5. This field has no effect
|
String |
assignee()
Login of the user who is assigned to this issue.
|
String |
attribute(String key) |
Map<String,String> |
attributes()
Empty on batch side since version 5.2.
|
String |
authorLogin()
Login of the SCM account that introduced this issue.
|
Date |
closeDate()
Date when status was set to
STATUS_CLOSED , else null. |
List<IssueComment> |
comments()
Non-null list of comments, ordered by chronological order.
|
String |
componentKey()
Components are modules ("my_project"), directories ("my_project:my/dir") or files ("my_project:my/file.c").
|
String |
componentUuid() |
Date |
creationDate() |
Duration |
debt()
Deprecated.
since 5.5, replaced by
effort() |
Duration |
effort() |
Double |
effortToFix()
Deprecated.
since 5.5, replaced by
gap() |
Double |
gap()
Arbitrary distance to threshold for resolving the issue.
|
boolean |
isCopied()
During a scan returns true if the issue is copied from another branch.
|
boolean |
isNew()
During a scan return if the current issue is a new one.
|
String |
key()
Unique generated key.
|
String |
language() |
Integer |
line()
Optional line number.
|
String |
message() |
String |
projectKey() |
String |
projectUuid() |
String |
reporter()
Deprecated.
since 5.5, manual issue feature has been dropped.
|
String |
resolution()
The type of resolution, or null if the issue is not resolved.
|
RuleKey |
ruleKey() |
String |
severity()
See constants in
Severity . |
String |
status()
See constant values in
Issue . |
Collection<String> |
tags() |
Date |
updateDate() |
static final int MESSAGE_MAX_SIZE
static final String STATUS_OPEN
static final String STATUS_CONFIRMED
static final String STATUS_REOPENED
static final String STATUS_RESOLVED
static final String STATUS_CLOSED
static final String RESOLUTION_FIXED
static final String RESOLUTION_FALSE_POSITIVE
static final String RESOLUTION_REMOVED
static final String RESOLUTION_WONT_FIX
static final List<String> RESOLUTIONS
String componentKey()
@CheckForNull String message()
@CheckForNull Integer line()
@Deprecated @CheckForNull Double effortToFix()
gap()
@CheckForNull Double gap()
@CheckForNull String resolution()
Issue
.@Deprecated @CheckForNull String reporter()
@CheckForNull String assignee()
Date creationDate()
Date updateDate()
@CheckForNull Date closeDate()
STATUS_CLOSED
, else null.@CheckForNull String attribute(String key)
Map<String,String> attributes()
@CheckForNull String authorLogin()
@Deprecated @CheckForNull String actionPlanKey()
List<IssueComment> comments()
ScannerSide
).boolean isNew()
boolean isCopied()
@Deprecated Duration debt()
effort()
@CheckForNull Duration effort()
String projectKey()
String projectUuid()
String componentUuid()
Collection<String> tags()
Copyright © 2009–2018 SonarSource. All rights reserved.