aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorKlaudio Sinani <klaudio.sinani@sonarsource.com>2022-03-09 10:10:29 +0100
committersonartech <sonartech@sonarsource.com>2022-03-09 20:02:58 +0000
commit0fe19fcf4e8236de5206bfb0fabd22f97065c374 (patch)
tree92fd9a08301cde137cd3457f5f88ac967bcd4458 /sonar-plugin-api
parentde1309d1e8294bcd16490b0f7c5d6251fd301b4f (diff)
downloadsonarqube-0fe19fcf4e8236de5206bfb0fabd22f97065c374.tar.gz
sonarqube-0fe19fcf4e8236de5206bfb0fabd22f97065c374.zip
SONAR-16101 Introduce new `acknowledged` resolution type for reviewed hotspots
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/DefaultTransitions.java5
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java8
2 files changed, 12 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 ac5cf281a0f..87a35c1bc10 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
@@ -64,6 +64,11 @@ public interface DefaultTransitions {
String RESOLVE_AS_SAFE = "resolveassafe";
/**
+ * @since 9.4
+ */
+ String RESOLVE_AS_ACKNOWLEDGED = "resolveasacknowledged";
+
+ /**
* @since 7.8
*/
String RESET_AS_TO_REVIEW = "resetastoreview";
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 12ce624cbf4..eff01cf5dc2 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
@@ -80,9 +80,15 @@ public interface Issue extends Serializable {
*/
String RESOLUTION_SAFE = "SAFE";
+ /**
+ * Security Hotspot has been reviewed and acknowledged that it poses a risk.
+ * @since 9.4
+ */
+ String RESOLUTION_ACKNOWLEDGED = "ACKNOWLEDGED";
+
List<String> RESOLUTIONS = unmodifiableList(asList(RESOLUTION_FALSE_POSITIVE, RESOLUTION_WONT_FIX, RESOLUTION_FIXED, RESOLUTION_REMOVED));
- List<String> SECURITY_HOTSPOT_RESOLUTIONS = unmodifiableList(asList(RESOLUTION_FIXED, RESOLUTION_SAFE));
+ List<String> SECURITY_HOTSPOT_RESOLUTIONS = unmodifiableList(asList(RESOLUTION_FIXED, RESOLUTION_SAFE, RESOLUTION_ACKNOWLEDGED));
/**
* @since 7.8