From 882a48ee26c694880eabdacaa4a0bfc031a9990d Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 19 Jul 2017 17:27:29 +0200 Subject: [PATCH] SONAR-9576 Add incremental mode flag and file status in scanner report --- .../src/main/protobuf/scanner_report.proto | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto index 7033c31ce75..75a93b65e12 100644 --- a/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto +++ b/sonar-scanner-protocol/src/main/protobuf/scanner_report.proto @@ -30,13 +30,14 @@ option optimize_for = SPEED; message Metadata { int64 analysis_date = 1; - // TODO should we keep this project_key here or not ? Because it's a duplication of Component.key string organization_key = 2; + // TODO should we keep this project_key here or not ? Because it's a duplication of Component.key string project_key = 3; string branch = 4; int32 root_component_ref = 5; bool cross_project_duplication_activated = 6; map qprofiles_per_language = 7; + bool incremental = 8; message QProfile { string key = 1; @@ -91,6 +92,7 @@ message Component { int32 lines = 11; // Only available on PROJECT and MODULE types string description = 12; + FileStatus status = 13; enum ComponentType { UNSET = 0; @@ -100,6 +102,14 @@ message Component { FILE = 4; } + // For incremental mode + enum FileStatus { + UNAVAILABLE = 0; + SAME = 1; + CHANGED = 2; + ADDED = 3; + } + } message Measure { -- 2.39.5