diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-01 14:13:54 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-02 13:46:25 +0200 |
commit | 484811de561b8d830a4c360be921f81000d4c19d (patch) | |
tree | 6eb060989cb1489aa4e5b3f7b4d444bcde4ff92c | |
parent | a38ab4af8afbef30e6f5399fa3697564ee8e08aa (diff) | |
download | sonarqube-484811de561b8d830a4c360be921f81000d4c19d.tar.gz sonarqube-484811de561b8d830a4c360be921f81000d4c19d.zip |
SONAR-6588 Send all measures to the report, even the ones that was not marked to be stored in database
Removing this check allow to send all file measures to the report
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java index 262f6780fb3..fe57b624502 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java @@ -83,8 +83,7 @@ public class MeasuresPublisher implements ReportPublisherStep { if (resource == null || measure == null) { return false; } - return measure.getPersistenceMode().useDatabase() && - !(ResourceUtils.isEntity(resource) && measure.isBestValue()) && isMeasureNotEmpty(measure); + return !(ResourceUtils.isEntity(resource) && measure.isBestValue()) && isMeasureNotEmpty(measure); } private static boolean isMeasureNotEmpty(Measure measure) { |