diff options
author | Michal Duda <michal.duda@sonarsource.com> | 2021-03-11 20:52:24 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-03-17 20:08:34 +0000 |
commit | 4e76eae61a9cc708dde1e71d1895dfbb810f63ce (patch) | |
tree | 1b268245f8ebfb51e23f00e2588e87ed2661690b /sonar-ws/src | |
parent | b65f41e7553d520a095509d3db7fca15302547f3 (diff) | |
download | sonarqube-4e76eae61a9cc708dde1e71d1895dfbb810f63ce.tar.gz sonarqube-4e76eae61a9cc708dde1e71d1895dfbb810f63ce.zip |
SONAR-14192 Add optional return field 'deprecatedKeys' to /api/rules/search
Diffstat (limited to 'sonar-ws/src')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-rules.proto | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-rules.proto b/sonar-ws/src/main/protobuf/ws-rules.proto index 4ef4ccb8886..719e7b7e326 100644 --- a/sonar-ws/src/main/protobuf/ws-rules.proto +++ b/sonar-ws/src/main/protobuf/ws-rules.proto @@ -82,7 +82,7 @@ message Rule { optional bool isTemplate = 13; optional string templateKey = 14; optional Tags tags = 15; - optional SysTags sysTags = 16; + optional SysTags sysTags = 16; optional string lang = 19; optional string langName = 20; optional Params params = 21; @@ -110,7 +110,7 @@ message Rule { optional string debtRemFnCoeff = 35; // Deprecated since 5.5, replaced by remFnBaseEffort optional string debtRemFnOffset = 36; - + optional sonarqube.ws.commons.RuleType type = 37; optional string defaultRemFnType = 38; optional string defaultRemFnGapMultiplier = 39; optional string defaultRemFnBaseEffort = 40; @@ -121,13 +121,12 @@ message Rule { optional string gapDescription = 44; optional sonarqube.ws.commons.RuleScope scope = 46; optional bool isExternal = 47; - - optional sonarqube.ws.commons.RuleType type = 37; + optional DeprecatedKeys deprecatedKeys = 48; message Params { repeated Param params = 1; } - + message Param { optional string key = 1; optional string htmlDesc = 2; @@ -136,6 +135,10 @@ message Rule { } } +message DeprecatedKeys { + repeated string deprecatedKey = 1; +} + message SysTags { repeated string sysTags = 1; } @@ -169,7 +172,7 @@ message Active { } message QProfiles { - map<string,QProfile> qProfiles = 1; + map<string, QProfile> qProfiles = 1; } message QProfile { |