]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3644 Fix labels and sizes in exclusions settings
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 11 Sep 2013 15:38:28 +0000 (17:38 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 12 Sep 2013 07:19:20 +0000 (09:19 +0200)
Replace 'violations' with 'issues'
Replace 'switch off' with 'ignore'
Double the size of large configuration fields (for regexps/patterns)
Change title of multicriteria property

plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/ignore/IgnoreIssuesConfiguration.java

index b7e8092523c33a064286b0c7478b9d1aee9c61dc..d1ac261f3b98d492b4edf62274eceec753881aa5 100644 (file)
@@ -57,7 +57,7 @@ public final class IgnoreIssuesConfiguration {
     // static configuration declaration only
   }
 
-  static final int LARGE_SIZE = 20;
+  static final int LARGE_SIZE = 40;
   static final int SMALL_SIZE = 10;
 
   public static List<PropertyDefinition> getPropertyDefinitions() {
@@ -65,8 +65,8 @@ public final class IgnoreIssuesConfiguration {
       PropertyDefinition.builder(PATTERNS_MULTICRITERIA_KEY)
         .category(CoreProperties.CATEGORY_EXCLUSIONS)
         .subCategory(SUB_CATEGORY_IGNORE_ISSUES)
-        .name("File Path Pattern")
-        .description("Patterns used to identify which violations to switch off.<br/>" +
+        .name("Multi-criteria exclusion patterns")
+        .description("Patterns used to identify which issues are ignored.<br/>" +
           CONFIG_DOCUMENTATION_LINK)
         .onQualifiers(Qualifiers.PROJECT)
         .index(3)
@@ -94,7 +94,7 @@ public final class IgnoreIssuesConfiguration {
         .category(CoreProperties.CATEGORY_EXCLUSIONS)
         .subCategory(SUB_CATEGORY_IGNORE_ISSUES)
         .name("Block exclusion patterns")
-        .description("Patterns used to identify blocks in which violations are switched off.<br/>" +
+        .description("Patterns used to identify blocks in which issues are ignored.<br/>" +
           CONFIG_DOCUMENTATION_LINK)
         .onQualifiers(Qualifiers.PROJECT)
         .index(2)
@@ -116,14 +116,14 @@ public final class IgnoreIssuesConfiguration {
         .category(CoreProperties.CATEGORY_EXCLUSIONS)
         .subCategory(SUB_CATEGORY_IGNORE_ISSUES)
         .name("File exclusion patterns")
-        .description("Patterns used to identify files in which violations are switched off.<br/>" +
+        .description("Patterns used to identify files in which issues are ignored.<br/>" +
           CONFIG_DOCUMENTATION_LINK)
         .onQualifiers(Qualifiers.PROJECT)
         .index(1)
         .fields(
           PropertyFieldDefinition.build(FILE_REGEXP)
             .name("Regular expression")
-            .description("If this regular expression is found in a file, then following lines are ignored.")
+            .description("If this regular expression is found in a file, then the whole file is ignored.")
             .type(PropertyType.STRING)
             .indicativeSize(LARGE_SIZE)
             .build())