]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-766 Fix subcategory for coverage exclusions
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 13 Sep 2013 14:45:34 +0000 (16:45 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 13 Sep 2013 14:45:34 +0000 (16:45 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/CoverageMeasurementFilter.java
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java

index 99b60f96157d4b4e2311a88d4615dc52019d07a5..4f7f04af32482ef602cc52b4b83766f8f46aae35 100644 (file)
@@ -83,7 +83,7 @@ public class CoverageMeasurementFilter implements MeasurementFilter {
     return ImmutableList.of(
       PropertyDefinition.builder("sonar.coverage.exclusions")
         .category(CoreProperties.CATEGORY_EXCLUSIONS)
-        .subCategory(CoreProperties.CATEGORY_CODE_COVERAGE) // TODO Replace with dedicated subcat
+        .subCategory(CoreProperties.SUBCATEGORY_COVERAGE_EXCLUSIONS)
         .type(PropertyType.STRING)
         .multiValues(true)
         .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE)
index b9e822a9c1c81090bae5eb1dd2b0bbe0ec3c3aa0..fa363d066565ee37f8de46083e224941d738c073 100644 (file)
@@ -825,8 +825,8 @@ 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.category.exclusions.codeCoverage=Code Coverage
-property.category.exclusions.codeCoverage.description=Configure files which should be considered for code coverage.
+property.category.exclusions.coverage=Code Coverage
+property.category.exclusions.coverage.description=Configure files which should be considered for code coverage.
 property.sonar.coverage.exclusions.name=Coverage Exclusions
 property.sonar.coverage.exclusions.description=Patterns used to exclude some files from coverage report.
 property.error.notBoolean=Valid options are "true" and "false"
index 124f0c08e5a775ae94eb2f4a4f98f98b8f083995..29ef316c5ab39240f732a1dc7a3fb699bd5bb646 100644 (file)
@@ -77,6 +77,7 @@ public interface CoreProperties {
    */
   String SUBCATEGORY_FILES_EXCLUSIONS = "files";
   String SUBCATEGORY_DUPLICATIONS_EXCLUSIONS = "duplications";
+  String SUBCATEGORY_COVERAGE_EXCLUSIONS = "coverage";
 
   /**
    * @since 3.7