From 77a5e05ed4d2ff936dca4752f6d6dffb7e38b6c6 Mon Sep 17 00:00:00 2001 From: Dejan Milisavljevic Date: Thu, 24 Oct 2024 15:07:49 +0200 Subject: [PATCH] SONAR-23298 Fix metrics --- .../org/sonar/core/metric/SoftwareQualitiesMetrics.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonar-core/src/main/java/org/sonar/core/metric/SoftwareQualitiesMetrics.java b/sonar-core/src/main/java/org/sonar/core/metric/SoftwareQualitiesMetrics.java index 66ebb4c776b..aaf2f7b0536 100644 --- a/sonar-core/src/main/java/org/sonar/core/metric/SoftwareQualitiesMetrics.java +++ b/sonar-core/src/main/java/org/sonar/core/metric/SoftwareQualitiesMetrics.java @@ -202,7 +202,7 @@ public class SoftwareQualitiesMetrics implements Metrics { public static final String NEW_SOFTWARE_QUALITY_MAINTAINABILITY_REMEDIATION_EFFORT_KEY = "new_software_quality_maintainability_remediation_effort"; public static final Metric NEW_SOFTWARE_QUALITY_MAINTAINABILITY_REMEDIATION_EFFORT = - new Metric.Builder(NEW_SOFTWARE_QUALITY_MAINTAINABILITY_REMEDIATION_EFFORT_KEY, "Technical Debt Ratio", + new Metric.Builder(NEW_SOFTWARE_QUALITY_MAINTAINABILITY_REMEDIATION_EFFORT_KEY, "Added Technical Debt", Metric.ValueType.WORK_DUR) .setDescription("Total effort (in minutes) to fix all the maintainability issues on new code on the component and therefore to " + "comply to all the requirements.") @@ -279,9 +279,9 @@ public class SoftwareQualitiesMetrics implements Metrics { public static final String NEW_SOFTWARE_QUALITY_MAINTAINABILITY_DEBT_RATIO_KEY = "new_software_quality_maintainability_debt_ratio"; public static final Metric NEW_SOFTWARE_QUALITY_MAINTAINABILITY_DEBT_RATIO = - new Metric.Builder(NEW_SOFTWARE_QUALITY_MAINTAINABILITY_DEBT_RATIO_KEY, "Added Technical Debt", + new Metric.Builder(NEW_SOFTWARE_QUALITY_MAINTAINABILITY_DEBT_RATIO_KEY, "Technical Debt Ratio on New Code", Metric.ValueType.PERCENT) - .setDescription("Added Technical Debt") + .setDescription("Technical Debt Ratio on New Code") .setDomain(DOMAIN_MAINTAINABILITY) .setDirection(Metric.DIRECTION_WORST) .setOptimizedBestValue(true) -- 2.39.5