diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2022-11-23 15:57:02 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-01 20:03:11 +0000 |
commit | 66b8bff0dcc778eb93da92cd408214bbfca82c2a (patch) | |
tree | e60388bdf0bdbc60434d00eae81b8e6dffe39fad /sonar-scanner-protocol | |
parent | 24d4519ea1b8a4426dd90e0bb80b2b09bd7a1c12 (diff) | |
download | sonarqube-66b8bff0dcc778eb93da92cd408214bbfca82c2a.tar.gz sonarqube-66b8bff0dcc778eb93da92cd408214bbfca82c2a.zip |
SONAR-17592 Persist Message formatting from plugin api
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r-- | sonar-scanner-protocol/src/main/protobuf/scanner_report.proto | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto index bcb9f6e5d52..beb59561354 100644 --- a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto +++ b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto @@ -198,6 +198,7 @@ message Issue { repeated Flow flow = 7; bool quickFixAvailable = 8; optional string ruleDescriptionContextKey = 9; + repeated MessageFormatting msgFormatting = 10; } message ExternalIssue { @@ -209,6 +210,7 @@ message ExternalIssue { TextRange text_range = 6; repeated Flow flow = 7; IssueType type = 8; + repeated MessageFormatting msgFormatting = 9; } message AdHocRule { @@ -233,6 +235,17 @@ message IssueLocation { // Only when component is a file. Can be empty for a file if this is an issue global to the file. TextRange text_range = 2; string msg = 3; + repeated MessageFormatting msgFormatting = 4; +} + +message MessageFormatting { + int32 start = 1; + int32 end = 2; + MessageFormattingType type = 3; +} + +enum MessageFormattingType { + CODE = 0; } message Flow { |