You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/05/20 13:35:14 UTC
[commons-statistics] 01/02: Updated checkstyle configuration to
include the suppression filter.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git
commit d2e17c371277747692e4a7d727f388ae398f8e24
Author: aherbert <ah...@apache.org>
AuthorDate: Mon May 20 14:18:35 2019 +0100
Updated checkstyle configuration to include the suppression filter.
This is required to enable the Checkstyle plugin within eclipse.
---
src/main/resources/checkstyle/checkstyle-suppressions.xml | 4 ++--
src/main/resources/checkstyle/checkstyle.xml | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/checkstyle/checkstyle-suppressions.xml b/src/main/resources/checkstyle/checkstyle-suppressions.xml
index 6ccaa63..f6aec29 100644
--- a/src/main/resources/checkstyle/checkstyle-suppressions.xml
+++ b/src/main/resources/checkstyle/checkstyle-suppressions.xml
@@ -16,8 +16,8 @@
limitations under the License.
-->
<!DOCTYPE suppressions PUBLIC
- "-//Checkstyle//DTD SuppressionFilter Configuration 1.0//EN"
- "https://checkstyle.org/dtds/suppressions_1_0.dtd">
+ "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
+ "https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<suppress checks="Javadoc" files=".*[/\\]test[/\\].*" />
<suppress checks="MultipleStringLiterals" files=".*[/\\]test[/\\].*" />
diff --git a/src/main/resources/checkstyle/checkstyle.xml b/src/main/resources/checkstyle/checkstyle.xml
index 09cb382..42f417e 100644
--- a/src/main/resources/checkstyle/checkstyle.xml
+++ b/src/main/resources/checkstyle/checkstyle.xml
@@ -21,6 +21,12 @@
<!-- Commons statistics customization of default Checkstyle behavior -->
<module name="Checker">
+ <module name="SuppressionFilter">
+ <!-- Default property set by maven-checkstyle-plugin -->
+ <property name="file" value="${checkstyle.suppressions.file}"/>
+ <property name="optional" value="false"/>
+ </module>
+
<property name="localeLanguage" value="en"/>
<module name="TreeWalker">