From: OrlovAlexander Date: Tue, 15 Oct 2024 12:09:21 +0000 (+0200) Subject: SONAR-23343 Add impacts to regulatory report X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c18a1fe1ccd427bf9511d7370777cd5042219f43;p=sonarqube.git SONAR-23343 Add impacts to regulatory report --- diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/rule/RuleMapper.xml b/server/sonar-db-dao/src/main/resources/org/sonar/db/rule/RuleMapper.xml index 41373d9c5a8..d6350ed2107 100644 --- a/server/sonar-db-dao/src/main/resources/org/sonar/db/rule/RuleMapper.xml +++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/rule/RuleMapper.xml @@ -114,6 +114,14 @@ + + + + + + + + - diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualityprofile/QProfileComparison.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualityprofile/QProfileComparison.java index 42464c303e2..6f1444f770e 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualityprofile/QProfileComparison.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualityprofile/QProfileComparison.java @@ -99,7 +99,7 @@ public class QProfileComparison { } } - private static Map computeEffectiveImpactMap(RuleDto ruleDto, Map activeRuleImpacts) { + public static Map computeEffectiveImpactMap(RuleDto ruleDto, Map activeRuleImpacts) { Map impacts = ruleDto.getDefaultImpactsMap(); impacts.replaceAll(activeRuleImpacts::getOrDefault); return impacts;