aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src/main/protobuf/batch_report.proto
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-11-04 17:43:02 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-11-09 08:41:26 +0100
commitd24589f13f3e6712be21bacd14b670f5eacdfe8b (patch)
tree69b005107ffe32d8f9289ba90913b210b69ff2b1 /sonar-batch-protocol/src/main/protobuf/batch_report.proto
parenteb5fd4fe77eb1b82b3aa5e1c3474d85ac39ee9ce (diff)
downloadsonarqube-d24589f13f3e6712be21bacd14b670f5eacdfe8b.tar.gz
sonarqube-d24589f13f3e6712be21bacd14b670f5eacdfe8b.zip
SONAR-6989 Feed the file duplication index in the batch report
Diffstat (limited to 'sonar-batch-protocol/src/main/protobuf/batch_report.proto')
-rw-r--r--sonar-batch-protocol/src/main/protobuf/batch_report.proto14
1 files changed, 5 insertions, 9 deletions
diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
index bd5b8727821..7937353fe9f 100644
--- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto
+++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto
@@ -134,9 +134,6 @@ message Duplicate {
// Will be null when duplicate is in the same file
optional int32 other_file_ref = 1;
optional TextRange range = 2;
-
- // temporary field during development of computation stack for cross project duplications
- optional string other_file_key = 3;
}
message Duplication {
@@ -147,12 +144,11 @@ message Duplication {
// Used for cross project duplication
message DuplicationBlock {
- repeated int32 hash = 1;
- optional int32 index_in_file = 2;
- optional int32 start_line = 3;
- optional int32 end_line = 4;
- optional int32 start_token_index = 5;
- optional int32 end_token_index = 6;
+ repeated int32 hash = 1 [packed = true];
+ optional int32 start_line = 2;
+ optional int32 end_line = 3;
+ optional int32 start_token_index = 4;
+ optional int32 end_token_index = 5;
}
// Lines start at 1 and line offsets start at 0