]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11776 Quality Gate failure conditions should be sorted
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 6 Mar 2019 21:14:16 +0000 (15:14 -0600)
committerSonarTech <sonartech@sonarsource.com>
Mon, 11 Mar 2019 19:21:04 +0000 (20:21 +0100)
server/sonar-server-common/src/main/java/org/sonar/server/qualitygate/EvaluatedQualityGate.java

index b45f0c0da291346232932cb0eca05092ed7cabc9..d73a5d8d2e3a8c6373ef031594311ea13c46d506 100644 (file)
@@ -113,9 +113,10 @@ public class EvaluatedQualityGate {
   }
 
   public static final class Builder {
-    private static final List<String> CONDITIONS_ORDER = Arrays.asList(NEW_SECURITY_RATING_KEY, SECURITY_RATING_KEY, NEW_RELIABILITY_RATING_KEY,
-      RELIABILITY_RATING_KEY, NEW_MAINTAINABILITY_RATING_KEY, SQALE_RATING_KEY, NEW_COVERAGE_KEY, COVERAGE_KEY, NEW_DUPLICATED_LINES_DENSITY_KEY,
-      DUPLICATED_LINES_DENSITY_KEY);
+    private static final List<String> CONDITIONS_ORDER = Arrays.asList(NEW_RELIABILITY_RATING_KEY, RELIABILITY_RATING_KEY,
+      NEW_SECURITY_RATING_KEY, SECURITY_RATING_KEY, NEW_MAINTAINABILITY_RATING_KEY, SQALE_RATING_KEY,
+      NEW_COVERAGE_KEY, COVERAGE_KEY,
+      NEW_DUPLICATED_LINES_DENSITY_KEY, DUPLICATED_LINES_DENSITY_KEY);
     private static final Map<String, Integer> CONDITIONS_ORDER_IDX = IntStream.range(0, CONDITIONS_ORDER.size()).boxed()
       .collect(Collectors.toMap(CONDITIONS_ORDER::get, x -> x));