diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-11-19 10:11:49 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-11-19 10:12:11 +0100 |
commit | c7d7b674db196194deadf63c5cd4911f4df42b32 (patch) | |
tree | 6a4b5caa000df4cc2faafec8a83d3a14fa4d51d2 | |
parent | 133e5c16f795d4f8b610240d63d578df397c6eef (diff) | |
download | sonarqube-c7d7b674db196194deadf63c5cd4911f4df42b32.tar.gz sonarqube-c7d7b674db196194deadf63c5cd4911f4df42b32.zip |
SONAR-11374 move file move property into dedicated sub category
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"; |