From c18a1fe1ccd427bf9511d7370777cd5042219f43 Mon Sep 17 00:00:00 2001 From: OrlovAlexander Date: Tue, 15 Oct 2024 14:09:21 +0200 Subject: [PATCH] SONAR-23343 Add impacts to regulatory report --- .../resources/org/sonar/db/rule/RuleMapper.xml | 16 ++++++++++++++-- .../qualityprofile/QProfileComparison.java | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) 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; -- 2.39.5