aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorPierre Guillot <50145663+pierre-guillot-sonarsource@users.noreply.github.com>2019-05-09 18:03:38 +0200
committerSonarTech <sonartech@sonarsource.com>2019-05-22 20:21:14 +0200
commitd6b083849c60a53e15765e8c8b98122e4c082e6a (patch)
tree3fa213700b29ff8d2c9e51b47595d32c6e0f2929 /sonar-plugin-api
parent5fd6b9048ff0b38510c33bd278375d47b4efe495 (diff)
downloadsonarqube-d6b083849c60a53e15765e8c8b98122e4c082e6a.tar.gz
sonarqube-d6b083849c60a53e15765e8c8b98122e4c082e6a.zip
SONAR-12026 introduce new status 'reviewed' and new transition 'resolve as reviewed' for hotspot
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/DefaultTransitions.java7
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java5
2 files changed, 11 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/DefaultTransitions.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/DefaultTransitions.java
index 106dfb0cbd7..b6869181373 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/DefaultTransitions.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/DefaultTransitions.java
@@ -57,8 +57,13 @@ public interface DefaultTransitions {
String SET_AS_IN_REVIEW = "setinreview";
/**
+ * @since 7.8
+ */
+ String RESOLVE_AS_REVIEWED = "resolveasreviewed";
+
+ /**
* @since 4.4
*/
List<String> ALL = unmodifiableList(asList(CONFIRM, UNCONFIRM, REOPEN, RESOLVE, FALSE_POSITIVE, WONT_FIX, CLOSE,
- DETECT, DISMISS, REJECT, SET_AS_IN_REVIEW, ACCEPT, CLEAR, REOPEN_HOTSPOT));
+ DETECT, DISMISS, REJECT, SET_AS_IN_REVIEW, ACCEPT, CLEAR, REOPEN_HOTSPOT, RESOLVE_AS_REVIEWED));
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java
index 49db5e45f31..63d072a014a 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java
@@ -86,6 +86,11 @@ public interface Issue extends Serializable {
String STATUS_IN_REVIEW = "INREVIEW";
/**
+ * @since 7.8
+ */
+ String STATUS_REVIEWED = "REVIEWED";
+
+ /**
* Return all available statuses
*
* @since 4.4