From: Jean-Baptiste Lievremont Date: Wed, 11 Sep 2013 15:04:05 +0000 (+0200) Subject: SONAR-4655 Move CPD exclusions settings to dedicated subcategory of Exclusions X-Git-Tag: 4.0~463 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2e8c5764557af60a6b340823bc960513361775cc;p=sonarqube.git SONAR-4655 Move CPD exclusions settings to dedicated subcategory of Exclusions --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index cd843c9ff80..54dfc755f6e 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -822,6 +822,8 @@ property.sonar.includedModules.description=Comma-separated list of the modules t If a module's artifactId differs from its module name (the directory name): it is the artifactId that should be use instead of the module name. property.category.exclusions.issues=Issues property.category.exclusions.issues.description=Configure which issues should not be reported. +property.category.exclusions.duplications=Duplications +property.category.exclusions.duplications.description=Configure files which should not be checked for duplicated code property.error.notBoolean=Valid options are "true" and "false" property.error.notInteger=Only digits are allowed property.error.notFloat=Not a floating point number diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java index 72d474afbf0..d4b7a553863 100644 --- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java +++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java @@ -33,7 +33,7 @@ import java.util.List; public final class CpdPlugin extends SonarPlugin { - public List getExtensions() { + public List getExtensions() { return ImmutableList.of( PropertyDefinition.builder(CoreProperties.CPD_CROSS_RPOJECT) .defaultValue(CoreProperties.CPD_CROSS_RPOJECT_DEFAULT_VALUE + "") @@ -57,7 +57,8 @@ public final class CpdPlugin extends SonarPlugin { .description("Patterns used to exclude some source files from the duplication detection mechanism. " + "See the \"Exclusions\" category to know how to use wildcards to specify this property.") .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE) - .category(CoreProperties.CATEGORY_DUPLICATIONS) + .category(CoreProperties.CATEGORY_EXCLUSIONS) + .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS_EXCLUSIONS) .multiValues(true) .build(), 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 b741be03da0..124f0c08e5a 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 @@ -76,6 +76,7 @@ public interface CoreProperties { * @since 4.0 */ String SUBCATEGORY_FILES_EXCLUSIONS = "files"; + String SUBCATEGORY_DUPLICATIONS_EXCLUSIONS = "duplications"; /** * @since 3.7