]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16365 Add support for rule's description default section
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Tue, 17 May 2022 07:05:33 +0000 (09:05 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 17 May 2022 20:02:45 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsDescription.tsx

index a9fa8cdb79552fe5f13e93b253c18a9ac75dd25f..2799bc26383c48f9129f11d4ce7bad59d6998f35 100644 (file)
@@ -33,11 +33,12 @@ import {
 import RemoveExtendedDescriptionModal from './RemoveExtendedDescriptionModal';
 
 const SECTION_ORDER: Dict<number> = {
-  [RuleDescriptionSections.INTRODUCTION]: 0,
-  [RuleDescriptionSections.ROOT_CAUSE]: 1,
-  [RuleDescriptionSections.ASSESS_THE_PROBLEM]: 2,
-  [RuleDescriptionSections.HOW_TO_FIX]: 3,
-  [RuleDescriptionSections.RESOURCES]: 4
+  [RuleDescriptionSections.DEFAULT]: 0,
+  [RuleDescriptionSections.INTRODUCTION]: 1,
+  [RuleDescriptionSections.ROOT_CAUSE]: 2,
+  [RuleDescriptionSections.ASSESS_THE_PROBLEM]: 3,
+  [RuleDescriptionSections.HOW_TO_FIX]: 4,
+  [RuleDescriptionSections.RESOURCES]: 5
 };
 
 interface Props {