aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorlukasz-jarocki-sonarsource <77498856+lukasz-jarocki-sonarsource@users.noreply.github.com>2023-04-21 17:05:46 +0200
committersonartech <sonartech@sonarsource.com>2023-04-24 20:04:24 +0000
commit5b132ad8eedf204ba28af43e68a6c2ccd13dfa4e (patch)
tree8d503e19252d8f181fde2778b882c028f113f488 /sonar-ws
parenta755196f047cc2f36a9612134d4f1c3482ccb4c5 (diff)
downloadsonarqube-5b132ad8eedf204ba28af43e68a6c2ccd13dfa4e.tar.gz
sonarqube-5b132ad8eedf204ba28af43e68a6c2ccd13dfa4e.zip
SONAR-19050 added characteristic to elasticsearch index
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java1
-rw-r--r--sonar-ws/src/main/protobuf/ws-commons.proto12
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto3
-rw-r--r--sonar-ws/src/main/protobuf/ws-rules.proto1
4 files changed, 17 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
index b9f417bc9b8..566f1a60b7d 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
@@ -79,6 +79,7 @@ public class IssuesWsParameters {
public static final String PARAM_LANGUAGES = "languages";
public static final String PARAM_TAGS = "tags";
public static final String PARAM_TYPES = "types";
+ public static final String PARAM_CHARACTERISTICS = "characteristics";
public static final String PARAM_OWASP_ASVS_LEVEL = "owaspAsvsLevel";
public static final String PARAM_PCI_DSS = "pciDss";
public static final String PARAM_PCI_DSS_32 = "pciDss-3.2";
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto
index a8ba062db9e..755acdf4e8b 100644
--- a/sonar-ws/src/main/protobuf/ws-commons.proto
+++ b/sonar-ws/src/main/protobuf/ws-commons.proto
@@ -177,6 +177,18 @@ enum RuleType {
SECURITY_HOTSPOT = 4;
}
+enum RuleCharacteristic {
+ UNKNOWN_RULE_CHARACTERISTIC = 0;
+ CLEAR = 1;
+ CONSISTENT = 2;
+ STRUCTURED = 3;
+ TESTED = 4;
+ ROBUST = 5;
+ SECURE = 6;
+ PORTABLE = 7;
+ COMPLIANT = 8;
+}
+
enum BranchType {
reserved 1, 2;
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index b03e72200b1..b16cb75e2f0 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -161,6 +161,7 @@ message Issue {
optional string ruleDescriptionContextKey = 37;
repeated sonarqube.ws.commons.MessageFormatting messageFormattings = 38;
+ optional sonarqube.ws.commons.RuleCharacteristic characteristic = 39;
}
message Transitions {
@@ -267,6 +268,7 @@ message IssueLite {
optional sonarqube.ws.commons.RuleType type = 6;
optional Location mainLocation = 7;
optional bool closed = 8;
+ optional sonarqube.ws.commons.RuleCharacteristic characteristic = 9;
}
@@ -287,6 +289,7 @@ message TaintVulnerabilityLite {
repeated Flow flows = 9;
optional bool assignedToSubscribedUser = 10;
optional string ruleDescriptionContextKey = 11;
+ optional sonarqube.ws.commons.RuleCharacteristic characteristic = 12;
}
message Flow {
diff --git a/sonar-ws/src/main/protobuf/ws-rules.proto b/sonar-ws/src/main/protobuf/ws-rules.proto
index 961cd327428..0e548b77793 100644
--- a/sonar-ws/src/main/protobuf/ws-rules.proto
+++ b/sonar-ws/src/main/protobuf/ws-rules.proto
@@ -120,6 +120,7 @@ message Rule {
optional DeprecatedKeys deprecatedKeys = 48;
optional DescriptionSections descriptionSections = 49;
optional EducationPrinciples educationPrinciples = 50;
+ optional sonarqube.ws.commons.RuleCharacteristic characteristic = 51;
message DescriptionSections {
repeated DescriptionSection descriptionSections = 1;