]> source.dussan.org Git - sonarqube.git/commit
SONAR-6939 ability for plugins to override the decimal scale of float
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 4 Dec 2015 10:41:15 +0000 (11:41 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 7 Dec 2015 16:26:43 +0000 (17:26 +0100)
commit6cf62f0adc9677404df3ff457135591c17ad89a5
tree08b31db10e52e92575a6343768f93e46b13266b7
parent541c15654fc024534c45710b30b9cfc8ec551d96
SONAR-6939 ability for plugins to override the decimal scale of float
measures
93 files changed:
it/it-plugins/batch-plugin/src/main/java/com/sonarsource/BatchPlugin.java
it/it-plugins/batch-plugin/src/main/java/com/sonarsource/decimal_scale_of_measures/DecimalScaleMeasureComputer.java [new file with mode: 0644]
it/it-plugins/batch-plugin/src/main/java/com/sonarsource/decimal_scale_of_measures/DecimalScaleMetric.java [new file with mode: 0644]
it/it-plugins/batch-plugin/src/main/java/com/sonarsource/decimal_scale_of_measures/DecimalScaleProperty.java [new file with mode: 0644]
it/it-plugins/batch-plugin/src/main/java/com/sonarsource/decimal_scale_of_measures/DecimalScaleSensor.java [new file with mode: 0644]
it/it-tests/src/test/java/it/Category3Suite.java
it/it-tests/src/test/java/it/measure/DecimalScaleMetricTest.java [new file with mode: 0644]
plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java
plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/measures/ConstantFloatMeasureSensor.java [deleted file]
plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/measures/XooMetrics.java [deleted file]
plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/measures/package-info.java [deleted file]
server/sonar-server/src/main/java/org/sonar/server/computation/formula/AverageFormula.java
server/sonar-server/src/main/java/org/sonar/server/computation/formula/coverage/CoverageFormula.java
server/sonar-server/src/main/java/org/sonar/server/computation/measure/BatchMeasureToMeasure.java
server/sonar-server/src/main/java/org/sonar/server/computation/measure/Measure.java
server/sonar-server/src/main/java/org/sonar/server/computation/measure/MeasureDtoToMeasure.java
server/sonar-server/src/main/java/org/sonar/server/computation/measure/api/MeasureComputerContextImpl.java
server/sonar-server/src/main/java/org/sonar/server/computation/metric/Metric.java
server/sonar-server/src/main/java/org/sonar/server/computation/metric/MetricDtoToMetric.java
server/sonar-server/src/main/java/org/sonar/server/computation/metric/MetricImpl.java
server/sonar-server/src/main/java/org/sonar/server/computation/sqale/SqaleMeasuresVisitor.java
server/sonar-server/src/main/java/org/sonar/server/computation/step/CommentMeasuresStep.java
server/sonar-server/src/main/java/org/sonar/server/computation/step/CustomMeasuresCopyStep.java
server/sonar-server/src/main/java/org/sonar/server/computation/step/DuplicationMeasuresStep.java
server/sonar-server/src/main/java/org/sonar/server/computation/step/UnitTestMeasuresStep.java
server/sonar-server/src/main/java/org/sonar/server/metric/ws/MetricJsonWriter.java
server/sonar-server/src/main/java/org/sonar/server/metric/ws/SearchAction.java
server/sonar-server/src/main/java/org/sonar/server/startup/RegisterMetrics.java
server/sonar-server/src/test/java/org/sonar/server/computation/formula/AverageFormulaExecutionTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/formula/AverageFormulaTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/formula/coverage/CoverageUtilsTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/issue/commonrule/CommentDensityRuleTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/issue/commonrule/CoverageRuleTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/BatchMeasureToMeasureTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/BestValueOptimizationTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/MapBasedRawMeasureRepositoryTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/MeasureDtoToMeasureTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/MeasureRepositoryImplTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/MeasureTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/MeasureToMeasureDtoTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/measure/api/MeasureImplTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/metric/MetricImplTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/metric/MetricRepositoryRule.java
server/sonar-server/src/test/java/org/sonar/server/computation/qualitygate/ConditionEvaluatorTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/sqale/ReportSqaleMeasuresVisitorTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/sqale/ViewsSqaleMeasuresVisitorTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/CustomMeasuresCopyStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistMeasuresStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ReportComplexityMeasuresStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ReportComputeMeasureVariationsStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ReportCoverageMeasuresStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ReportUnitTestMeasuresStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ViewsComplexityMeasuresStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ViewsComputeMeasureVariationsStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ViewsCoverageMeasuresStepTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/step/ViewsUnitTestMeasuresStepTest.java
server/sonar-server/src/test/java/org/sonar/server/startup/RegisterMetricsTest.java
server/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/disable_undefined_metrics-result.xml
server/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/disable_undefined_metrics.xml
server/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/enable_disabled_metric-result.xml
server/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/enable_disabled_metric.xml
server/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/insert_new_metrics-result.xml
server/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/update_non_custom_metrics-result.xml
server/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/update_non_custom_metrics.xml
server/sonar-web/src/main/webapp/WEB-INF/app/models/project_measure.rb
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1005_add_decimal_scale_to_metrics.rb [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java
sonar-db/src/main/java/org/sonar/db/metric/MetricDto.java
sonar-db/src/main/java/org/sonar/db/version/DatabaseVersion.java
sonar-db/src/main/resources/org/sonar/db/metric/MetricMapper.xml
sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql
sonar-db/src/main/resources/org/sonar/db/version/schema-h2.ddl
sonar-db/src/test/java/org/sonar/db/metric/MetricDaoTest.java
sonar-db/src/test/resources/org/sonar/db/metric/MetricDaoTest/shared.xml
sonar-plugin-api/src/main/java/org/sonar/api/batch/DefaultFormulaContext.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/DefaultFormulaData.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/AverageFormula.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/FormulaContext.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/FormulaData.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/MeanAggregationFormula.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/SumChildDistributionFormula.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/SumChildValuesFormula.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/WeightedMeanAggregationFormula.java
sonar-plugin-api/src/test/java/org/sonar/api/batch/DefaultFormulaDataTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/AverageFormulaTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/MeanAggregationFormulaTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/MeasureTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/MetricTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/SumChildDistributionFormulaTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/SumChildValuesFormulaTest.java [deleted file]
sonar-plugin-api/src/test/java/org/sonar/api/measures/WeightedMeanAggregationFormulaTest.java [new file with mode: 0644]