filesRepository = new FilesRepositoryImpl();
}
MetricService metricService = new MetricService(manager);
RulesService rulesService = new RulesService(manager);
for (Report report : Report.getReports()) {
MeasuresCollector collector = report.getMeasuresCollector();
if (collector.initialize(mavenProject, metricService, rulesService, filesRepository)) {
List<Collectable> collected = collector.collect();
persistCollectables(snapshot, collected);
}
}
}
}