From e019c97d3173c44402c4f38e9acca8d579f4816d Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Mon, 29 Jan 2018 09:55:50 +0100 Subject: SONAR-10321 Add scope field to rule search ws --- sonar-ws/src/main/protobuf/ws-commons.proto | 6 ++++++ sonar-ws/src/main/protobuf/ws-rules.proto | 1 + 2 files changed, 7 insertions(+) (limited to 'sonar-ws') 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; -- cgit v1.2.3