From: Stas Vilchik Date: Tue, 19 Apr 2016 13:22:21 +0000 (+0200) Subject: change capitalization of new metrics (#906) X-Git-Tag: 5.5-RC2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c68097af280c98c8f8ced7abadbcda09c1c15aab;p=sonarqube.git change capitalization of new metrics (#906) --- diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 8ce30fca411..06b22606895 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2395,11 +2395,11 @@ metric.conditions_by_line.description=Conditions by line metric.covered_conditions_by_line.name=Covered conditions by line metric.covered_conditions_by_line.description=Covered conditions by line -metric.reliability_remediation_effort.name=Reliability remediation effort +metric.reliability_remediation_effort.name=Reliability Remediation Effort metric.reliability_rating.name=Reliability Rating -metric.security_remediation_effort.name=Security remediation effort +metric.security_remediation_effort.name=Security Remediation Effort metric.security_rating.name=Security Rating diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java index 9a936521085..e3b65d00d32 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java @@ -1617,7 +1617,7 @@ public final class CoreMetrics { * SonarQube Quality Model * @since 5.5 */ - public static final Metric NEW_CODE_SMELLS = new Metric.Builder(NEW_CODE_SMELLS_KEY, "New code smells", Metric.ValueType.INT) + public static final Metric NEW_CODE_SMELLS = new Metric.Builder(NEW_CODE_SMELLS_KEY, "New Code Smells", Metric.ValueType.INT) .setDescription("New Code Smells") .setDirection(Metric.DIRECTION_WORST) .setQualitative(true) @@ -2298,7 +2298,7 @@ public final class CoreMetrics { * @since 5.5 */ public static final Metric EFFORT_TO_REACH_MAINTAINABILITY_RATING_A = new Metric.Builder(EFFORT_TO_REACH_MAINTAINABILITY_RATING_A_KEY, - "Effort to reach maintainability rating A", Metric.ValueType.WORK_DUR) + "Effort to Reach Maintainability Rating A", Metric.ValueType.WORK_DUR) .setDomain(DOMAIN_MAINTAINABILITY) .setDirection(Metric.DIRECTION_WORST) .setQualitative(true) @@ -2320,7 +2320,7 @@ public final class CoreMetrics { /** * @since 5.5 */ - public static final Metric RELIABILITY_REMEDIATION_EFFORT = new Metric.Builder(RELIABILITY_REMEDIATION_EFFORT_KEY, "Reliability remediation effort", + public static final Metric RELIABILITY_REMEDIATION_EFFORT = new Metric.Builder(RELIABILITY_REMEDIATION_EFFORT_KEY, "Reliability Remediation Effort", Metric.ValueType.WORK_DUR) .setDomain(DOMAIN_RELIABILITY) .setDirection(Metric.DIRECTION_WORST) @@ -2337,9 +2337,8 @@ public final class CoreMetrics { /** * @since 5.5 */ - public static final Metric NEW_RELIABILITY_REMEDIATION_EFFORT = new Metric.Builder(NEW_RELIABILITY_REMEDIATION_EFFORT_KEY, "Reliability remediation effort on new code", + public static final Metric NEW_RELIABILITY_REMEDIATION_EFFORT = new Metric.Builder(NEW_RELIABILITY_REMEDIATION_EFFORT_KEY, "Reliability Remediation Effort on New Code", Metric.ValueType.WORK_DUR) - .setDescription("Reliability remediation effort of new code") .setDomain(DOMAIN_RELIABILITY) .setDirection(Metric.DIRECTION_WORST) .setOptimizedBestValue(true) @@ -2378,7 +2377,7 @@ public final class CoreMetrics { /** * @since 5.5 */ - public static final Metric SECURITY_REMEDIATION_EFFORT = new Metric.Builder(SECURITY_REMEDIATION_EFFORT_KEY, "Security remediation effort", Metric.ValueType.WORK_DUR) + public static final Metric SECURITY_REMEDIATION_EFFORT = new Metric.Builder(SECURITY_REMEDIATION_EFFORT_KEY, "Security Remediation Effort", Metric.ValueType.WORK_DUR) .setDomain(DOMAIN_SECURITY) .setDirection(Metric.DIRECTION_WORST) .setOptimizedBestValue(true) @@ -2394,9 +2393,8 @@ public final class CoreMetrics { /** * @since 5.5 */ - public static final Metric NEW_SECURITY_REMEDIATION_EFFORT = new Metric.Builder(NEW_SECURITY_REMEDIATION_EFFORT_KEY, "Security remediation effort on new code", + public static final Metric NEW_SECURITY_REMEDIATION_EFFORT = new Metric.Builder(NEW_SECURITY_REMEDIATION_EFFORT_KEY, "Security Remediation Effort on New Code", Metric.ValueType.WORK_DUR) - .setDescription("Security remediation effort of new code") .setDomain(DOMAIN_SECURITY) .setDirection(Metric.DIRECTION_WORST) .setOptimizedBestValue(true)