aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src/main/protobuf
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-20 00:22:54 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-20 22:30:42 +0200
commit399f6c100092eff8eef6f99b7bfb8051af2d4f68 (patch)
tree208532e628886a7207d450a3eb1d90f115333ada /sonar-batch-protocol/src/main/protobuf
parent548a1ccb48cd1d403602670d923bf73b7bd70c0e (diff)
downloadsonarqube-399f6c100092eff8eef6f99b7bfb8051af2d4f68.tar.gz
sonarqube-399f6c100092eff8eef6f99b7bfb8051af2d4f68.zip
SONAR-6703 load common rule parameters from batch report
Diffstat (limited to 'sonar-batch-protocol/src/main/protobuf')
-rw-r--r--sonar-batch-protocol/src/main/protobuf/batch_report.proto44
1 files changed, 10 insertions, 34 deletions
diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
index 6632bb8a6f9..3520f5bee01 100644
--- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto
+++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
@@ -47,19 +47,17 @@ message Metadata {
optional int32 root_component_ref = 4;
}
-message ActiveRuleParameter {
- optional string key = 1;
- optional string value = 2;
-}
-
-/*
- The rules that are enabled in the Quality profiles associated with the project
-*/
message ActiveRule {
optional string rule_repository = 1;
optional string rule_key = 2;
optional Severity severity = 3;
- repeated ActiveRuleParameter parameter = 4;
+ repeated ActiveRuleParam param = 4;
+
+ // TODO replace by map
+ message ActiveRuleParam {
+ optional string key = 1;
+ optional string value = 2;
+ }
}
message ComponentLink {
@@ -107,12 +105,6 @@ message Measure {
optional int32 person_id = 20;
}
-/* TODO to be removed. It prevents streaming */
-message Measures {
- optional int32 component_ref = 1;
- repeated Measure measure = 2;
-}
-
message Issue {
optional string rule_repository = 1;
optional string rule_key = 2;
@@ -124,12 +116,6 @@ message Issue {
optional string attributes = 8;
}
-/* TODO to be removed. It prevents streaming */
-message Issues {
- optional int32 component_ref = 1;
- repeated Issue issue = 2;
-}
-
message Changesets {
optional int32 component_ref = 1;
repeated Changeset changeset = 2;
@@ -158,11 +144,6 @@ message Duplication {
repeated Duplicate duplicate = 2;
}
-message Duplications {
- optional int32 component_ref = 1;
- repeated Duplication duplication = 2;
-}
-
// Lines start at 1 and line offsets start at 0
message Range {
// Should never be null
@@ -175,14 +156,9 @@ message Range {
optional int32 end_offset = 4;
}
-message Symbols {
- optional int32 file_ref = 1;
- repeated Symbol symbol = 2;
-
- message Symbol {
- optional Range declaration = 1;
- repeated Range reference = 2;
- }
+message Symbol {
+ optional Range declaration = 1;
+ repeated Range reference = 2;
}
// Only FILE component has coverage information, and only executable lines should contains this information.