aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol/src/main
diff options
context:
space:
mode:
authorLéo Geoffroy <leo.geoffroy@sonarsource.com>2023-08-09 16:49:35 +0200
committersonartech <sonartech@sonarsource.com>2023-08-18 20:02:49 +0000
commitdddfee0f55914f56d168ae830038bd58fe9e1e8a (patch)
treef765f6a2ad6dcdf26106d39805c6404f7bb1c6e4 /sonar-scanner-protocol/src/main
parent8b704e7f10a5525071975340cf97d0e5849beaaa (diff)
downloadsonarqube-dddfee0f55914f56d168ae830038bd58fe9e1e8a.tar.gz
sonarqube-dddfee0f55914f56d168ae830038bd58fe9e1e8a.zip
SONAR-20021 Manage external issues and adhoc rules
Diffstat (limited to 'sonar-scanner-protocol/src/main')
-rw-r--r--sonar-scanner-protocol/src/main/protobuf/scanner_report.proto16
1 files changed, 10 insertions, 6 deletions
diff --git a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
index 5de3e742b21..ec1ef8d57b6 100644
--- a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
+++ b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto
@@ -208,13 +208,15 @@ message ExternalIssue {
string engine_id = 1;
string rule_id = 2;
string msg = 3;
- Severity severity = 4;
+ optional Severity severity = 4;
int64 effort = 5;
TextRange text_range = 6;
repeated Flow flow = 7;
- IssueType type = 8;
+ optional IssueType type = 8;
repeated MessageFormatting msgFormatting = 9;
- repeated Impact overridenImpacts = 10;
+ repeated Impact impacts = 10;
+ optional string cleanCodeAttribute = 11;
+
}
message AdHocRule {
@@ -222,8 +224,10 @@ message AdHocRule {
string rule_id = 2;
string name = 3;
string description = 4;
- Severity severity = 5;
- IssueType type = 6;
+ optional Severity severity = 5;
+ optional IssueType type = 6;
+ optional string cleanCodeAttribute = 7;
+ repeated Impact defaultImpacts = 8;
}
enum IssueType {
@@ -367,4 +371,4 @@ message AnalysisWarning {
message Impact {
string software_quality = 1;
string severity = 2;
-} \ No newline at end of file
+}