aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver
diff options
context:
space:
mode:
authorAurelien Poscia <aurelien.poscia@sonarsource.com>2022-05-05 13:43:29 +0200
committersonartech <sonartech@sonarsource.com>2022-05-11 20:02:59 +0000
commitfcb80c0ade78102214df316476cf8c15e0e819d3 (patch)
tree68f2c40675d3a4bde7c8628d85c66529e43d1320 /server/sonar-webserver
parent88c7cab36bc79af4893593a75c7177c8e9dd7789 (diff)
downloadsonarqube-fcb80c0ade78102214df316476cf8c15e0e819d3.tar.gz
sonarqube-fcb80c0ade78102214df316476cf8c15e0e819d3.zip
SONAR-16397 Store rule description sections in the new DB structure and split when necessary
Diffstat (limited to 'server/sonar-webserver')
-rw-r--r--server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java
index eb4f64bd212..54ceaf5a4c1 100644
--- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java
+++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java
@@ -37,7 +37,11 @@ import org.sonar.server.qualityprofile.builtin.BuiltInQProfileLoader;
import org.sonar.server.qualityprofile.builtin.BuiltInQProfileUpdateImpl;
import org.sonar.server.qualityprofile.builtin.BuiltInQualityProfilesUpdateListener;
import org.sonar.server.qualityprofile.RegisterQualityProfiles;
+import org.sonar.server.rule.AdvancedRuleDescriptionSectionsGenerator;
+import org.sonar.server.rule.LegacyHotspotRuleDescriptionSectionsGenerator;
+import org.sonar.server.rule.LegacyIssueRuleDescriptionSectionsGenerator;
import org.sonar.server.rule.RegisterRules;
+import org.sonar.server.rule.RuleDescriptionSectionsGeneratorResolver;
import org.sonar.server.rule.WebServerRuleFinder;
import org.sonar.server.startup.GeneratePluginIndex;
import org.sonar.server.startup.RegisterMetrics;
@@ -65,6 +69,10 @@ public class PlatformLevelStartup extends PlatformLevel {
addIfStartupLeaderAndPluginsChanged(
RegisterMetrics.class,
RegisterQualityGates.class,
+ RuleDescriptionSectionsGeneratorResolver.class,
+ AdvancedRuleDescriptionSectionsGenerator.class,
+ LegacyHotspotRuleDescriptionSectionsGenerator.class,
+ LegacyIssueRuleDescriptionSectionsGenerator.class,
RegisterRules.class,
BuiltInQProfileLoader.class);
addIfStartupLeader(