]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7343 Change metric SQALE Rating to Maintainability Rating in the UI
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 10 Mar 2016 14:36:12 +0000 (15:36 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 10 Mar 2016 15:24:44 +0000 (16:24 +0100)
it/it-tests/src/test/resources/debt/TechnicalDebtWidgetTest/debt-overview/display-differential-values.html
it/it-tests/src/test/resources/debt/TechnicalDebtWidgetTest/debt-overview/should-open-links-on-measures-service.html
server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingGrid.java
server/sonar-web/src/main/less/components/ui.less
sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 1d4c78e0cca71cca649557909fc18e8c57983b05..de5a4b33d1b5b10a8236c5ace9b47869280c8366 100644 (file)
@@ -23,7 +23,7 @@
     <td>body</td>
     <td>*C*</td>
   </tr>
-  <!--No diff value is displayed on the SQALE rating-->
+  <!--No diff value is displayed on the maintainability rating-->
   <tr>
     <td>assertNotText</td>
     <td>body</td>
index b72bc1bd420ec8737898d1ecf234425d8990a515..97a8cec43ccf0d6c727b6cfb7d8474ba0d3c51fb 100644 (file)
@@ -25,7 +25,7 @@
   <tr>
     <td>waitForText</td>
     <td>content</td>
-    <td>*SQALE Rating*C*</td>
+    <td>*Maintainability Rating*C*</td>
   </tr>
   <tr>
     <td>open</td>
index 8a789020cc7bdc0559010525008de55c315e7a15..02826a50db9f5cbb90e05f294059df62c1cc7f93 100644 (file)
@@ -76,7 +76,7 @@ public class RatingGrid {
           return rating;
         }
       }
-      throw new IllegalArgumentException("A SQALE rating must be in the range [1..5].");
+      throw new IllegalArgumentException("A maintainability rating must be in the range [1..5].");
     }
   }
 
index 1066541d50f20c83c4b9908a645f4444e85ff5f7..84c6235101ad2c2ff1fb8373ac7250c9ed3a601c 100644 (file)
@@ -22,7 +22,7 @@
 
 
 /*
- * Display SQALE Rating (also used by the SQALE plugin)
+ * Display Maintainability Rating (also used by the SQALE plugin)
  */
 
 .rating {
index 5561f456043e1271548c971a295cafe78142a4c1..e19b590610ff6027b1a7203c7ed9ab769c4c3be3 100644 (file)
@@ -66,7 +66,7 @@ public class MeasuresPublisher implements ReportPublisherStep {
 
       builder.setValueType(getMeasureValueType(measure.getMetric().getType()));
       setValueAccordingToType(builder, measure);
-      // Because some numeric measures also have a data (like Sqale rating)
+      // Because some numeric measures also have a data (like maintainability rating)
       String data = measure.getData();
       if (data != null) {
         builder.setStringValue(data);
index 880f97dd48130fd01e242c85cda9650d88f77c94..ee3c07f13023caca3402109e57ac8d80e0b0e80a 100644 (file)
@@ -2206,7 +2206,7 @@ public final class CoreMetrics {
    * @since 4.5
    */
   // TODO should be renamed to MAINTAINABILITY_RATING
-  public static final Metric<Integer> SQALE_RATING = new Metric.Builder(SQALE_RATING_KEY, "SQALE Rating", Metric.ValueType.RATING)
+  public static final Metric<Integer> SQALE_RATING = new Metric.Builder(SQALE_RATING_KEY, "Maintainability Rating", Metric.ValueType.RATING)
     .setDomain(DOMAIN_MAINTAINABILITY)
     .setDirection(Metric.DIRECTION_WORST)
     .setQualitative(true)