aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2022-09-08 08:50:47 -0500
committersonartech <sonartech@sonarsource.com>2022-09-16 20:03:14 +0000
commitd6abb3ee19911c06bd8c01f4e57bcf8aaff445f9 (patch)
tree6d3b8179001ff390dc45490f64e34aafcd40433e /sonar-ws
parent47f5baa558b751f48cd04d06c63c044424904c37 (diff)
downloadsonarqube-d6abb3ee19911c06bd8c01f4e57bcf8aaff445f9.tar.gz
sonarqube-d6abb3ee19911c06bd8c01f4e57bcf8aaff445f9.zip
SONAR-17287 Return optional flow description and type in WS responses
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-commons.proto8
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto2
2 files changed, 10 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto
index 7a49f67ccb1..71a564212a0 100644
--- a/sonar-ws/src/main/protobuf/ws-commons.proto
+++ b/sonar-ws/src/main/protobuf/ws-commons.proto
@@ -95,6 +95,14 @@ message TextRange {
message Flow {
repeated Location locations = 1;
+ optional string description = 2;
+ optional FlowType flowType = 3;
+}
+
+enum FlowType {
+ UNDEFINED = 0;
+ DATA = 1;
+ EXECUTION = 2;
}
message Location {
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index 15735d26244..ca76506ec2c 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -287,4 +287,6 @@ message TaintVulnerabilityLite {
message Flow {
repeated Location locations = 1;
+ optional string description = 2;
+ optional sonarqube.ws.commons.FlowType type = 3;
}