diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2022-05-10 15:56:17 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-05-10 20:02:48 +0000 |
commit | 88c7cab36bc79af4893593a75c7177c8e9dd7789 (patch) | |
tree | b492cf8ac52ab706f55e6bf0e922ae5a89df2274 /server/sonar-server-common | |
parent | 53cdb3e20b60a6c0e4e9954959119496c80e2a10 (diff) | |
download | sonarqube-88c7cab36bc79af4893593a75c7177c8e9dd7789.tar.gz sonarqube-88c7cab36bc79af4893593a75c7177c8e9dd7789.zip |
SONAR-16364 fix rule description titles
Diffstat (limited to 'server/sonar-server-common')
2 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/rule/RuleDescriptionFormatter.java b/server/sonar-server-common/src/main/java/org/sonar/server/rule/RuleDescriptionFormatter.java index 13db9a72a63..0b78ff94321 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/rule/RuleDescriptionFormatter.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/rule/RuleDescriptionFormatter.java @@ -50,14 +50,14 @@ public class RuleDescriptionFormatter { RESOURCES_SECTION_KEY); public static final Map<String, String> HOTSPOT_SECTION_TITLES = Map.of( - ROOT_CAUSE_SECTION_KEY, "What's the risk ?", + ROOT_CAUSE_SECTION_KEY, "What is the risk?", ASSESS_THE_PROBLEM_SECTION_KEY, "Assess the risk", - HOW_TO_FIX_SECTION_KEY, "How can you fix it ?" + HOW_TO_FIX_SECTION_KEY, "How can you fix it?" ); public static final Map<String, String> RULE_SECTION_TITLES = Map.of( - ROOT_CAUSE_SECTION_KEY, "Why is this an issue ?", - HOW_TO_FIX_SECTION_KEY, "How to fix it ?", + ROOT_CAUSE_SECTION_KEY, "Why is this an issue?", + HOW_TO_FIX_SECTION_KEY, "How to fix it?", RESOURCES_SECTION_KEY, "Resources" ); diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/rule/RuleDescriptionFormatterTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/rule/RuleDescriptionFormatterTest.java index 260bb5ed4f6..ab79c311530 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/rule/RuleDescriptionFormatterTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/rule/RuleDescriptionFormatterTest.java @@ -62,11 +62,11 @@ public class RuleDescriptionFormatterTest { String html = RuleDescriptionFormatter.getDescriptionAsHtml(rule); assertThat(html) .contains( - "<h2>What's the risk ?</h2>" + "<h2>What is the risk?</h2>" + "<div>Root is Root</div><br/>" + "<h2>Assess the risk</h2>" + "<div>This is not a problem</div><br/>" - + "<h2>How can you fix it ?</h2>" + + "<h2>How can you fix it?</h2>" + "<div>I don't want to fix</div><br/>" ); } |