Search in sources :

Example 1 with MeasureComputerContextImpl

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);
    }
}
Also used : MeasureComputerWrapper(org.sonar.server.computation.task.projectanalysis.api.measurecomputer.MeasureComputerWrapper) MeasureComputerContextImpl(org.sonar.server.computation.task.projectanalysis.api.measurecomputer.MeasureComputerContextImpl) MeasureComputer(org.sonar.api.ce.measure.MeasureComputer)

Aggregations

MeasureComputer (org.sonar.api.ce.measure.MeasureComputer)1 MeasureComputerContextImpl (org.sonar.server.computation.task.projectanalysis.api.measurecomputer.MeasureComputerContextImpl)1 MeasureComputerWrapper (org.sonar.server.computation.task.projectanalysis.api.measurecomputer.MeasureComputerWrapper)1