aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-dbcleaner-plugin
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-09-18 10:17:17 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-09-18 10:17:17 +0200
commit62723fc7467cc38103ddee52c12bea95b5fecbed (patch)
tree9284a6d40bd9f02c03a8d6908a37a6f7f4282ba3 /plugins/sonar-dbcleaner-plugin
parent369a9d974e4f5e48bccd76a68ade1d7497fd984a (diff)
downloadsonarqube-62723fc7467cc38103ddee52c12bea95b5fecbed.tar.gz
sonarqube-62723fc7467cc38103ddee52c12bea95b5fecbed.zip
SONAR-4660 Make Settings > 'Database Cleaner', 'Differential Views', 'Duplications', 'Localization' and 'Security' pages, some sub-categories of the 'General' page
Diffstat (limited to 'plugins/sonar-dbcleaner-plugin')
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java
index 5a0e48fb96a..975cdccc8ff 100644
--- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java
+++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java
@@ -20,6 +20,7 @@
package org.sonar.plugins.dbcleaner;
import com.google.common.collect.ImmutableList;
+import org.sonar.api.CoreProperties;
import org.sonar.api.PropertyType;
import org.sonar.api.SonarPlugin;
import org.sonar.api.config.PropertyDefinition;
@@ -45,6 +46,8 @@ public final class DbCleanerPlugin extends SonarPlugin {
.description("If set to true, no history is kept at directory/package level. Setting this to false can cause database bloat.")
.type(PropertyType.BOOLEAN)
.onQualifiers(Qualifiers.PROJECT)
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory(CoreProperties.SUBCATEGORY_DATABASE_CLEANER)
.index(1)
.build(),
@@ -54,6 +57,8 @@ public final class DbCleanerPlugin extends SonarPlugin {
.description("Issues that have been closed for more than this number of days will be deleted.")
.type(PropertyType.INTEGER)
.onQualifiers(Qualifiers.PROJECT)
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory(CoreProperties.SUBCATEGORY_DATABASE_CLEANER)
.index(2)
.build(),
@@ -64,6 +69,8 @@ public final class DbCleanerPlugin extends SonarPlugin {
+ "the DbCleaner keeps the most recent one and fully deletes the other ones.")
.type(PropertyType.INTEGER)
.onQualifiers(Qualifiers.PROJECT)
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory(CoreProperties.SUBCATEGORY_DATABASE_CLEANER)
.index(3)
.build(),
@@ -74,6 +81,8 @@ public final class DbCleanerPlugin extends SonarPlugin {
+ "the DbCleaner keeps the most recent one and fully deletes the other ones")
.type(PropertyType.INTEGER)
.onQualifiers(Qualifiers.PROJECT)
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory(CoreProperties.SUBCATEGORY_DATABASE_CLEANER)
.index(4)
.build(),
@@ -84,6 +93,8 @@ public final class DbCleanerPlugin extends SonarPlugin {
+ "the DbCleaner keeps the most recent one and fully deletes the other ones.")
.type(PropertyType.INTEGER)
.onQualifiers(Qualifiers.PROJECT)
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory(CoreProperties.SUBCATEGORY_DATABASE_CLEANER)
.index(5)
.build(),
@@ -93,6 +104,8 @@ public final class DbCleanerPlugin extends SonarPlugin {
.description("After this number of weeks, all snapshots are fully deleted.")
.type(PropertyType.INTEGER)
.onQualifiers(Qualifiers.PROJECT)
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .subCategory(CoreProperties.SUBCATEGORY_DATABASE_CLEANER)
.index(6)
.build()
);