]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3032 Add parameter suppressLoadErrors to Checkstyle rules RedundantThrows and...
authorEvgeny Mandrikov <mandrikov@gmail.com>
Sun, 25 Mar 2012 18:56:36 +0000 (00:56 +0600)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Sun, 25 Mar 2012 19:50:56 +0000 (01:50 +0600)
plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties

index c908f6b95d5dec36b13c3eefd7dd2a5f4ab6cc3d..ddabafd2749ef0203963d6d5cb1fdfa7a70e47e1 100644 (file)
 
 
     </param>
+    <param key="suppressLoadErrors" type="b">
+      <!-- Note that default value in Checkstyle 5.5 is false -->
+      <defaultValue>true</defaultValue>
+    </param>
   </rule>
   <rule key="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck">
     <priority>MAJOR</priority>
     <param key="allowSubclasses" type="b">
 
     </param>
+    <param key="suppressLoadErrors" type="b">
+      <!-- Note that default value in Checkstyle 5.5 is false -->
+      <defaultValue>true</defaultValue>
+    </param>
   </rule>
   <rule key="com.puppycrawl.tools.checkstyle.checks.RegexpCheck">
     <priority>MAJOR</priority>
index 9a844aa96838aa4118454dcff227818e8b995302..aa9629e26af4db1b36f74aee540a5bf3abfabf79 100644 (file)
@@ -78,6 +78,7 @@ rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodChec
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.param.allowMissingPropertyJavadoc=Whether to allow missing Javadoc on accessor methods for properties (setters and getters). The setter and getter methods must match exactly the structures below.  <code> public void setNumber(final int number) { mNumber = number; }  public int getNumber() { return mNumber; }  public boolean isSomething() { return false; } </code>. Default is false.
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.param.excludeScope=visibility scope where Javadoc comments are not checked
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.param.allowUndeclaredRTE=whether to allow documented exceptions that are not declared if they are a subclass of java.lang.RuntimeException. Default is false.
+rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck.param.suppressLoadErrors=When set to false all problems with loading classes would be reported as violations. Default is true.
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck.name=Regexp Singleline Java
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck.param.ignoreCase=Controls whether to ignore case when searching. Default value is false.
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck.param.ignoreComments=Controls whether to ignore text in comments when searching. Default value is false.
@@ -321,6 +322,7 @@ rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck.pa
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheck.name=Redundant Throws
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheck.param.allowSubclasses=whether subclass of another declared exception is allowed in throws clause. Default is false.
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheck.param.allowUnchecked=whether unchecked exceptions in throws are allowed or not. Default is false.
+rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.RedundantThrowsCheck.param.suppressLoadErrors=When set to false all problems with loading classes would be reported as violations. Default is true.
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.ArrayTrailingCommaCheck.name=Array Trailing Comma
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.whitespace.GenericWhitespaceCheck.name=Generic Whitespace
 rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.NoCloneCheck.name=No Clone