diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-10-19 10:03:15 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-10-19 10:52:16 +0200 |
commit | e90b57685f41f94fe7e6b1a6151e84226b83b48d (patch) | |
tree | 85b342e69d633156bd0284e6e67210ac9f5b417b /sonar-core/src | |
parent | 11d92d774618e7ac47d06d27e2ff8e363fb02b77 (diff) | |
download | sonarqube-e90b57685f41f94fe7e6b1a6151e84226b83b48d.tar.gz sonarqube-e90b57685f41f94fe7e6b1a6151e84226b83b48d.zip |
SONAR-6926 remove Cross Project Duplication properties declaration
will be restored in 5.3 when Cross Project Duplication is reimplemented
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java | 66 |
1 files changed, 34 insertions, 32 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 33c6801afb4..89ed9561030 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 @@ -262,40 +262,42 @@ public class CorePropertyDefinitions { .onlyOnQualifiers(Qualifiers.PROJECT) .category(CoreProperties.CATEGORY_GENERAL) .subCategory(CoreProperties.SUBCATEGORY_DIFFERENTIAL_VIEWS) - .build(), + .build())); + // CPD - PropertyDefinition.builder(CoreProperties.CPD_CROSS_PROJECT) - .defaultValue(Boolean.toString(CoreProperties.CPD_CROSS_RPOJECT_DEFAULT_VALUE)) - .name("Cross project duplication detection") - .description("By default, SonarQube detects duplications at sub-project level. This means that a block " - + "duplicated on two sub-projects of the same project won't be reported. Setting this parameter to \"true\" " - + "allows to detect duplicates across sub-projects and more generally across projects. Note that activating " - + "this property will slightly increase each SonarQube analysis time.") - .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE) - .category(CoreProperties.CATEGORY_GENERAL) - .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS) - .type(PropertyType.BOOLEAN) - .build(), - PropertyDefinition.builder(CoreProperties.CPD_SKIP_PROPERTY) - .defaultValue(String.valueOf(false)) - .name("Skip") - .description("Disable detection of duplications") - .hidden() - .category(CoreProperties.CATEGORY_GENERAL) - .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS) - .type(PropertyType.BOOLEAN) - .build(), - PropertyDefinition.builder(CoreProperties.CPD_EXCLUSIONS) - .defaultValue("") - .name("Duplication Exclusions") - .description("Patterns used to exclude some source files from the duplication detection mechanism. " + - "See below to know how to use wildcards to specify this property.") - .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE) - .category(CoreProperties.CATEGORY_EXCLUSIONS) - .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS_EXCLUSIONS) - .multiValues(true) - .build())); + // CPD properties disabled in 5.2, will be enabled back in 5.3 (see SONAR-6323) +// PropertyDefinition.builder(CoreProperties.CPD_CROSS_PROJECT) +// .defaultValue(Boolean.toString(CoreProperties.CPD_CROSS_RPOJECT_DEFAULT_VALUE)) +// .name("Cross project duplication detection") +// .description("By default, SonarQube detects duplications at sub-project level. This means that a block " +// + "duplicated on two sub-projects of the same project won't be reported. Setting this parameter to \"true\" " +// + "allows to detect duplicates across sub-projects and more generally across projects. Note that activating " +// + "this property will slightly increase each SonarQube analysis time.") +// .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE) +// .category(CoreProperties.CATEGORY_GENERAL) +// .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS) +// .type(PropertyType.BOOLEAN) +// .build(), +// PropertyDefinition.builder(CoreProperties.CPD_SKIP_PROPERTY) +// .defaultValue(String.valueOf(false)) +// .name("Skip") +// .description("Disable detection of duplications") +// .hidden() +// .category(CoreProperties.CATEGORY_GENERAL) +// .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS) +// .type(PropertyType.BOOLEAN) +// .build(), +// PropertyDefinition.builder(CoreProperties.CPD_EXCLUSIONS) +// .defaultValue("") +// .name("Duplication Exclusions") +// .description("Patterns used to exclude some source files from the duplication detection mechanism. " + +// "See below to know how to use wildcards to specify this property.") +// .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE) +// .category(CoreProperties.CATEGORY_EXCLUSIONS) +// .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS_EXCLUSIONS) +// .multiValues(true) +// .build())); return defs; } } |