diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-05-04 19:45:03 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-05-05 11:23:41 +0200 |
commit | cc8d5ba68470e7341a3d08809b9f0140e0b36253 (patch) | |
tree | daac04ef0ab7267bdb965592ee154c3254b9d401 /plugins | |
parent | 39707810c59036f0ff64ded7ff50044f4906d23a (diff) | |
download | sonarqube-cc8d5ba68470e7341a3d08809b9f0140e0b36253.tar.gz sonarqube-cc8d5ba68470e7341a3d08809b9f0140e0b36253.zip |
SONAR-6457 Feed dependencies in batch report
Diffstat (limited to 'plugins')
4 files changed, 13 insertions, 21 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java index afe895137bf..1606b3aeaca 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/CountUnresolvedIssuesDecorator.java @@ -19,9 +19,6 @@ */ package org.sonar.plugins.core.issue; -import org.sonar.batch.components.Period; - -import org.sonar.batch.components.TimeMachineConfiguration; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.*; import org.apache.commons.lang.time.DateUtils; @@ -35,6 +32,8 @@ import org.sonar.api.resources.Resource; import org.sonar.api.resources.ResourceUtils; import org.sonar.api.rule.RuleKey; import org.sonar.api.rules.RulePriority; +import org.sonar.batch.components.Period; +import org.sonar.batch.components.TimeMachineConfiguration; import javax.annotation.Nullable; @@ -46,6 +45,7 @@ import java.util.*; * @since 3.6 */ @DependsUpon(DecoratorBarriers.ISSUES_TRACKED) +@RequiresDB public class CountUnresolvedIssuesDecorator implements Decorator { private final ResourcePerspectives perspectives; diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ManualMeasureDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ManualMeasureDecorator.java index 3825b13348f..a62c1af9748 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ManualMeasureDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ManualMeasureDecorator.java @@ -22,6 +22,7 @@ package org.sonar.plugins.core.sensors; import org.sonar.api.batch.Decorator; import org.sonar.api.batch.DecoratorContext; import org.sonar.api.batch.Phase; +import org.sonar.api.batch.RequiresDB; import org.sonar.api.database.DatabaseSession; import org.sonar.api.measures.Measure; import org.sonar.api.measures.Metric; @@ -35,6 +36,7 @@ import java.util.List; import static com.google.common.base.Preconditions.checkState; @Phase(name = Phase.Name.PRE) +@RequiresDB public class ManualMeasureDecorator implements Decorator { private DatabaseSession session; diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TimeMachineConfigurationPersister.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TimeMachineConfigurationPersister.java index 169246a096f..49473602e35 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TimeMachineConfigurationPersister.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/TimeMachineConfigurationPersister.java @@ -19,10 +19,7 @@ */ package org.sonar.plugins.core.timemachine; -import org.sonar.api.batch.Decorator; -import org.sonar.api.batch.DecoratorBarriers; -import org.sonar.api.batch.DecoratorContext; -import org.sonar.api.batch.DependedUpon; +import org.sonar.api.batch.*; import org.sonar.api.database.DatabaseSession; import org.sonar.api.database.model.Snapshot; import org.sonar.api.resources.Project; @@ -37,6 +34,7 @@ import java.util.List; import static org.sonar.api.utils.DateUtils.dateToLong; @DependedUpon(DecoratorBarriers.END_OF_TIME_MACHINE) +@RequiresDB public final class TimeMachineConfigurationPersister implements Decorator { private final TimeMachineConfiguration timeMachineConfiguration; diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/VariationDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/VariationDecorator.java index a997423aa37..36e525ecfb1 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/VariationDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/VariationDecorator.java @@ -19,22 +19,10 @@ */ package org.sonar.plugins.core.timemachine; -import org.sonar.batch.components.TimeMachineConfiguration; - -import org.sonar.batch.components.PastSnapshot; -import org.sonar.batch.components.PastMeasuresLoader; import com.google.common.collect.Maps; import org.apache.commons.lang.StringUtils; -import org.sonar.api.batch.Decorator; -import org.sonar.api.batch.DecoratorBarriers; -import org.sonar.api.batch.DecoratorContext; -import org.sonar.api.batch.DependedUpon; -import org.sonar.api.batch.DependsUpon; -import org.sonar.api.measures.Measure; -import org.sonar.api.measures.MeasuresFilters; -import org.sonar.api.measures.Metric; -import org.sonar.api.measures.MetricFinder; -import org.sonar.api.measures.RuleMeasure; +import org.sonar.api.batch.*; +import org.sonar.api.measures.*; import org.sonar.api.resources.Project; import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.Resource; @@ -42,6 +30,9 @@ import org.sonar.api.resources.Scopes; import org.sonar.api.rules.Rule; import org.sonar.api.rules.RuleFinder; import org.sonar.api.technicaldebt.batch.Characteristic; +import org.sonar.batch.components.PastMeasuresLoader; +import org.sonar.batch.components.PastSnapshot; +import org.sonar.batch.components.TimeMachineConfiguration; import javax.annotation.Nullable; @@ -50,6 +41,7 @@ import java.util.List; import java.util.Map; @DependedUpon(DecoratorBarriers.END_OF_TIME_MACHINE) +@RequiresDB public class VariationDecorator implements Decorator { private List<PastSnapshot> projectPastSnapshots; |