use of org.sonar.server.computation.task.projectanalysis.api.measurecomputer.MeasureComputerContextImpl in project sonarqube by SonarSource.
the class MeasureComputersVisitor method visitAny.
@Override
public void visitAny(org.sonar.server.computation.task.projectanalysis.component.Component component) {
MeasureComputerContextImpl context = new MeasureComputerContextImpl(component, settings, measureRepository, metricRepository, componentIssuesRepository);
for (MeasureComputerWrapper measureComputerWrapper : measureComputersHolder.getMeasureComputers()) {
context.setDefinition(measureComputerWrapper.getDefinition());
MeasureComputer measureComputer = measureComputerWrapper.getComputer();
LOGGER.trace("Measure computer '{}' is computing component {}", measureComputer, component);
measureComputer.compute(context);
}
}
Aggregations