diff options
author | lukasz-jarocki-sonarsource <77498856+lukasz-jarocki-sonarsource@users.noreply.github.com> | 2022-11-28 17:41:04 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-01 20:03:12 +0000 |
commit | 7f4d7aabc87647aa40386ab2708544e023ca0896 (patch) | |
tree | 91718e66f99e9136d5b68f8293898758c426f722 /sonar-ws | |
parent | 45f2da118a4fff160a9dbf57a1b5c2a67ac0849a (diff) | |
download | sonarqube-7f4d7aabc87647aa40386ab2708544e023ca0896.tar.gz sonarqube-7f4d7aabc87647aa40386ab2708544e023ca0896.zip |
SONAR-17592 added message formatting to responses in webapi
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-commons.proto | 11 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-hotspots.proto | 2 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-issues.proto | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto index 08e17ad049f..a8ba062db9e 100644 --- a/sonar-ws/src/main/protobuf/ws-commons.proto +++ b/sonar-ws/src/main/protobuf/ws-commons.proto @@ -111,6 +111,7 @@ message Location { // Only when component is a file. Can be empty for a file if this is an issue global to the file. optional sonarqube.ws.commons.TextRange textRange = 2; optional string msg = 3; + repeated MessageFormatting msgFormattings = 5; } message User { @@ -183,3 +184,13 @@ enum BranchType { PULL_REQUEST = 3; BRANCH = 4; } + +message MessageFormatting { + required int32 start = 1; + required int32 end = 2; + required MessageFormattingType type = 3; +} + +enum MessageFormattingType { + CODE = 0; +} diff --git a/sonar-ws/src/main/protobuf/ws-hotspots.proto b/sonar-ws/src/main/protobuf/ws-hotspots.proto index d725326a1e0..c846f04ad9e 100644 --- a/sonar-ws/src/main/protobuf/ws-hotspots.proto +++ b/sonar-ws/src/main/protobuf/ws-hotspots.proto @@ -49,6 +49,7 @@ message SearchWsResponse { optional sonarqube.ws.commons.TextRange textRange = 14; repeated sonarqube.ws.commons.Flow flows = 15; optional string ruleKey = 16; + repeated sonarqube.ws.commons.MessageFormatting messageFormattings = 17; } } @@ -73,6 +74,7 @@ message ShowWsResponse { repeated sonarqube.ws.commons.User users = 16; optional bool canChangeStatus = 17; repeated sonarqube.ws.commons.Flow flows = 19; + repeated sonarqube.ws.commons.MessageFormatting messageFormattings = 20; } message Component { diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto index cfa4d7a84d1..3a99824f6b4 100644 --- a/sonar-ws/src/main/protobuf/ws-issues.proto +++ b/sonar-ws/src/main/protobuf/ws-issues.proto @@ -159,6 +159,8 @@ message Issue { optional bool quickFixAvailable = 36; optional string ruleDescriptionContextKey = 37; + + repeated sonarqube.ws.commons.MessageFormatting messageFormattings = 38; } message Transitions { @@ -253,6 +255,7 @@ message Location { optional string filePath = 1; optional string message = 2; optional TextRange textRange = 3; + repeated sonarqube.ws.commons.MessageFormatting messageFormattings = 4; } message IssueLite { |