Skip to content

Commit

Permalink
SONAR-6676 remove Decorators for FILES and DIRECTORIES metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
sns-seb committed Jul 23, 2015
1 parent c5a1dec commit 44a68c4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 344 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import com.google.common.collect.Lists;
import java.util.Collection;
import java.util.List;
import org.sonar.batch.compute.DirectoriesDecorator;
import org.sonar.batch.compute.FilesDecorator;
import org.sonar.batch.cpd.CpdComponents;
import org.sonar.batch.issue.tracking.IssueTracking;
import org.sonar.batch.scan.report.ConsoleReport;
Expand Down Expand Up @@ -63,11 +61,7 @@ public static Collection all(DefaultAnalysisMode analysisMode) {
HtmlReport.class,
IssuesReportBuilder.class,
SourceProvider.class,
RuleNameProvider.class,

// to be moved to compute engine
DirectoriesDecorator.class,
FilesDecorator.class
RuleNameProvider.class
);
components.addAll(CorePropertyDefinitions.all());
// CPD
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void computeMeasuresOnSampleProject() throws Exception {
.newScanTask(new File(tmpDir, "sonar-project.properties"))
.start();

assertThat(result.allMeasures()).hasSize(25);
assertThat(result.allMeasures()).hasSize(18);
}

@Test
Expand All @@ -94,7 +94,7 @@ public void computeMeasuresOnTempProject() throws IOException {
.build())
.start();

assertThat(result.allMeasures()).hasSize(9);
assertThat(result.allMeasures()).hasSize(4);

assertThat(result.allMeasures()).contains(new DefaultMeasure<Integer>()
.forMetric(CoreMetrics.LINES)
Expand Down

0 comments on commit 44a68c4

Please sign in to comment.