diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-03-24 16:18:10 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-03-25 15:20:10 +0100 |
commit | ac44823d701c7ae3ea30ea8060c8fe28ca8ee6af (patch) | |
tree | a521202e8caac86d174fbf2675ea129c401ccd74 /sonar-batch-protocol/src/main/protobuf/batch_report.proto | |
parent | c9ce765d410c8924cb7d11b28e42e85078409622 (diff) | |
download | sonarqube-ac44823d701c7ae3ea30ea8060c8fe28ca8ee6af.tar.gz sonarqube-ac44823d701c7ae3ea30ea8060c8fe28ca8ee6af.zip |
SONAR-6257 Persist duplication measures in compute
Diffstat (limited to 'sonar-batch-protocol/src/main/protobuf/batch_report.proto')
-rw-r--r-- | sonar-batch-protocol/src/main/protobuf/batch_report.proto | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto index 2f1600d908c..c1b74b7f491 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto @@ -42,6 +42,7 @@ option optimize_for = SPEED; message Metadata { optional int64 analysis_date = 1; optional string project_key = 2; + optional string branch = 6; optional int32 root_component_ref = 3; // temporary fields used during development of computation stack @@ -74,6 +75,8 @@ message Component { repeated ComponentLink link = 10; // Only available on PROJECT and MODULE type optional string version = 12; + // Only available on PROJECT and MODULE type + optional string key = 14; // temporary fields during development of computation stack optional int64 id = 13; @@ -151,3 +154,23 @@ message Issues { // Temporary field for issues on deleted components optional string component_uuid = 3; } + +message DuplicationBlock { + // Will be null on original blocks or when duplications are on the same file + optional int32 other_component_ref = 1; + optional int32 start_line = 2; + optional int32 end_line = 3; + + // temporary field during development of computation stack for cross project duplications + optional string component_key = 4; +} + +message Duplication { + optional DuplicationBlock origin_block = 1; + repeated DuplicationBlock duplicated_by = 2; +} + +message Duplications { + optional int32 component_ref = 1; + repeated Duplication duplication = 2; +} |