aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
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;