From c7d7b674db196194deadf63c5cd4911f4df42b32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Mon, 19 Nov 2018 10:11:49 +0100 Subject: [PATCH] SONAR-11374 move file move property into dedicated sub category --- .../java/org/sonar/core/config/CorePropertyDefinitions.java | 4 ++-- sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 + .../src/main/java/org/sonar/api/CoreProperties.java | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java index 4079305f113..7593a4179db 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java +++ b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java @@ -28,7 +28,6 @@ import org.sonar.api.config.PropertyDefinition; import org.sonar.api.resources.Qualifiers; import static java.util.Arrays.asList; -import static org.sonar.api.CoreProperties.CATEGORY_GENERAL; import static org.sonar.api.CoreProperties.SKIP_FILEMOVE_DETECTION_KEY; import static org.sonar.api.PropertyType.BOOLEAN; import static org.sonar.api.database.DatabaseProperties.PROP_PASSWORD; @@ -273,7 +272,8 @@ public class CorePropertyDefinitions { .name("File move detection") .description("If set to true, file move won't be detected. Moved/renamed files and related issues will be reported as new.") .defaultValue(Boolean.toString(false)) - .category(CATEGORY_GENERAL) + .category(CoreProperties.CATEGORY_GENERAL) + .subCategory(CoreProperties.SUBCATEGORY_FILE_MOVE) .type(BOOLEAN) .onQualifiers(Qualifiers.PROJECT) .build()) diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index dccba131f7b..058f74b6130 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -779,6 +779,7 @@ property.category.general.duplications=Duplications property.category.general.differentialViews=Leak property.category.general.localization=Localization property.category.general.databaseCleaner=Database Cleaner +property.category.general.fileMove=File Move property.category.general.looknfeel=Look & Feel property.category.general.issues=Issues property.category.organizations=Organizations diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java index 8392196f5f4..89731f0d642 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java @@ -126,6 +126,11 @@ public interface CoreProperties { */ String CATEGORY_TECHNICAL_DEBT = "technicalDebt"; + /** + * @since 6.7.6 + */ + String SUBCATEGORY_FILE_MOVE = "fileMove"; + /* Global settings */ String SONAR_HOME = "SONAR_HOME"; -- 2.39.5