diff options
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 { |