aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-03-26 00:56:36 +0600
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-03-26 01:50:56 +0600
commit7d5b6182398a1f15a5650e03b067b26701b7fb22 (patch)
tree35e494710013fcccf7aaee1e1745c4c9cf5e088f /plugins
parentcf3eaf5efb2b200607689c8978c872c84e8ae794 (diff)
downloadsonarqube-7d5b6182398a1f15a5650e03b067b26701b7fb22.tar.gz
sonarqube-7d5b6182398a1f15a5650e03b067b26701b7fb22.zip
SONAR-3032 Add parameter suppressLoadErrors to Checkstyle rules RedundantThrows and JavadocMethod
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml8
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties2
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml
index c908f6b95d5..ddabafd2749 100644
--- a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml
+++ b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml
@@ -802,6 +802,10 @@
</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>
@@ -1250,6 +1254,10 @@
<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>
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties
index 9a844aa9683..aa9629e26af 100644
--- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties
@@ -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