aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2018-01-29 09:55:50 +0100
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-02-07 11:32:38 +0100
commite019c97d3173c44402c4f38e9acca8d579f4816d (patch)
tree58695fd7800cbd87584562177cb6418d6e7e745b /sonar-ws
parent4e1b01c0139c80bba0c8b1075010394fe4eeb3d4 (diff)
downloadsonarqube-e019c97d3173c44402c4f38e9acca8d579f4816d.tar.gz
sonarqube-e019c97d3173c44402c4f38e9acca8d579f4816d.zip
SONAR-10321 Add scope field to rule search ws
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-commons.proto6
-rw-r--r--sonar-ws/src/main/protobuf/ws-rules.proto1
2 files changed, 7 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto
index a9b566583e3..b5b0167e8d0 100644
--- a/sonar-ws/src/main/protobuf/ws-commons.proto
+++ b/sonar-ws/src/main/protobuf/ws-commons.proto
@@ -72,6 +72,12 @@ enum RuleStatus {
REMOVED = 3;
}
+enum RuleScope {
+ MAIN = 0;
+ TEST = 1;
+ ALL = 2;
+}
+
// Lines start at 1 and line offsets start at 0
message TextRange {
// Start line. Should never be absent
diff --git a/sonar-ws/src/main/protobuf/ws-rules.proto b/sonar-ws/src/main/protobuf/ws-rules.proto
index d3dfe2cd826..7bca93aab8b 100644
--- a/sonar-ws/src/main/protobuf/ws-rules.proto
+++ b/sonar-ws/src/main/protobuf/ws-rules.proto
@@ -119,6 +119,7 @@ message Rule {
optional string remFnBaseEffort = 43;
optional bool remFnOverloaded = 45;
optional string gapDescription = 44;
+ optional sonarqube.ws.commons.RuleScope scope = 46;
optional sonarqube.ws.commons.RuleType type = 37;