use of org.sonar.ce.task.projectanalysis.metric.Metric in project sonarqube by SonarSource.
the class MeasureComputerContextImpl method addMeasure.
@Override
public void addMeasure(String metricKey, boolean value) {
Metric metric = metricRepository.getByKey(metricKey);
validateAddMeasure(metric);
measureRepository.add(internalComponent, metric, newMeasureBuilder().create(value));
}
use of org.sonar.ce.task.projectanalysis.metric.Metric in project sonarqube by SonarSource.
the class MeasureComputerContextImpl method addMeasure.
@Override
public void addMeasure(String metricKey, String value) {
Metric metric = metricRepository.getByKey(metricKey);
validateAddMeasure(metric);
measureRepository.add(internalComponent, metric, newMeasureBuilder().create(value));
}
use of org.sonar.ce.task.projectanalysis.metric.Metric in project sonarqube by SonarSource.
the class MeasureComputerContextImpl method addMeasure.
@Override
public void addMeasure(String metricKey, double value) {
Metric metric = metricRepository.getByKey(metricKey);
validateAddMeasure(metric);
measureRepository.add(internalComponent, metric, newMeasureBuilder().create(value, metric.getDecimalScale()));
}
use of org.sonar.ce.task.projectanalysis.metric.Metric in project sonarqube by SonarSource.
the class MeasureComputerContextImpl method addMeasure.
@Override
public void addMeasure(String metricKey, int value) {
Metric metric = metricRepository.getByKey(metricKey);
validateAddMeasure(metric);
measureRepository.add(internalComponent, metric, newMeasureBuilder().create(value));
}
use of org.sonar.ce.task.projectanalysis.metric.Metric in project sonarqube by SonarSource.
the class MeasureComputerContextImpl method addMeasure.
@Override
public void addMeasure(String metricKey, long value) {
Metric metric = metricRepository.getByKey(metricKey);
validateAddMeasure(metric);
measureRepository.add(internalComponent, metric, newMeasureBuilder().create(value));
}
Aggregations