diff options
author | Dejan Milisavljevic <dejan.milisavljevic@sonarsource.com> | 2024-11-28 10:38:10 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-11-29 20:03:06 +0000 |
commit | 750f43d80403166c33468e395a282b1e4465be7e (patch) | |
tree | 9d000187e0c8a20f013c5a5ca0f90a27eedd6e2b /server/sonar-server-common | |
parent | c8c28a618615c3046aa464b5f9faf1924c132ae2 (diff) | |
download | sonarqube-750f43d80403166c33468e395a282b1e4465be7e.tar.gz sonarqube-750f43d80403166c33468e395a282b1e4465be7e.zip |
SONAR-23569 Use Software Quality metrics when in MQR mode
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r-- | server/sonar-server-common/src/main/java/org/sonar/server/metric/StandardToMQRMetrics.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/metric/StandardToMQRMetrics.java b/server/sonar-server-common/src/main/java/org/sonar/server/metric/StandardToMQRMetrics.java index a08ec970281..2c6711f8d34 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/metric/StandardToMQRMetrics.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/metric/StandardToMQRMetrics.java @@ -127,4 +127,12 @@ public class StandardToMQRMetrics { return Optional.ofNullable(STANDARD_TO_MQR_MODE_METRICS.get(metricKey)) .or(() -> Optional.ofNullable(MQR_TO_STANDARD_MODE_METRICS.get(metricKey))); } + + public static Optional<String> getEquivalentStandardExperienceMetric(String metricKey) { + return Optional.ofNullable(MQR_TO_STANDARD_MODE_METRICS.get(metricKey)); + } + + public static Optional<String> getEquivalentMQRMetric(String metricKey) { + return Optional.ofNullable(STANDARD_TO_MQR_MODE_METRICS.get(metricKey)); + } } |