From: Dejan Milisavljevic Date: Wed, 23 Oct 2024 07:39:32 +0000 (+0200) Subject: SONAR-23425 Scanning alerts work in both MQR and STANDARD modes X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f5c724f65ee8c9248504a82ea88bbcaa1e0eb09;p=sonarqube.git SONAR-23425 Scanning alerts work in both MQR and STANDARD modes --- diff --git a/sonar-core/src/main/java/org/sonar/core/config/MQRModeConstants.java b/sonar-core/src/main/java/org/sonar/core/config/MQRModeConstants.java index 3a89d92b523..a1653eab580 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/MQRModeConstants.java +++ b/sonar-core/src/main/java/org/sonar/core/config/MQRModeConstants.java @@ -24,6 +24,7 @@ public class MQRModeConstants { public static final String UI_MODE = "Mode"; public static final String UI_MODE_SUB_CATEGORY = "Mode"; public static final String MULTI_QUALITY_MODE_ENABLED = "sonar.multi-quality-mode.enabled"; + public static final boolean MULTI_QUALITY_MODE_DEFAULT_VALUE = true; private MQRModeConstants() { //class cannot be instantiated diff --git a/sonar-core/src/main/java/org/sonar/core/config/MQRModeProperties.java b/sonar-core/src/main/java/org/sonar/core/config/MQRModeProperties.java index 5b7cfd12372..b5ef02e42e9 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/MQRModeProperties.java +++ b/sonar-core/src/main/java/org/sonar/core/config/MQRModeProperties.java @@ -24,6 +24,7 @@ import java.util.List; import org.sonar.api.PropertyType; import org.sonar.api.config.PropertyDefinition; +import static org.sonar.core.config.MQRModeConstants.MULTI_QUALITY_MODE_DEFAULT_VALUE; import static org.sonar.core.config.MQRModeConstants.UI_MODE; import static org.sonar.core.config.MQRModeConstants.UI_MODE_SUB_CATEGORY; import static org.sonar.core.config.MQRModeConstants.MULTI_QUALITY_MODE_ENABLED; @@ -36,7 +37,7 @@ public final class MQRModeProperties { public static List all() { return Collections.singletonList( PropertyDefinition.builder(MULTI_QUALITY_MODE_ENABLED) - .defaultValue(Boolean.TRUE.toString()) + .defaultValue(Boolean.toString(MULTI_QUALITY_MODE_DEFAULT_VALUE)) .name("Enable Multi-Quality Rule Mode") .description("Aims to more accurately represent the impact software has on all software qualities. " + "It does this by mapping rules to every software quality they can impact, not just the one " +