You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/08/18 18:28:27 UTC
svn commit: r1618656 -
/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml
Author: hboutemy
Date: Mon Aug 18 16:28:26 2014
New Revision: 1618656
URL: http://svn.apache.org/r1618656
Log:
[MCHECKSTYLE-247] added CHECKSTYLE_OFF/ON: regexp support (SuppressionCommentFilter)
Modified:
maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml?rev=1618656&r1=1618655&r2=1618656&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/resources/config/maven_checks.xml Mon Aug 18 16:28:26 2014
@@ -67,6 +67,10 @@ under the License.
<!-- see http://checkstyle.sourceforge.net/config_annotation.html#SuppressWarningsHolder -->
<module name="SuppressWarningsHolder"/>
+ <!-- required for SuppressionCommentFilter -->
+ <!-- see http://checkstyle.sourceforge.net/config.html#SuppressionCommentFilter -->
+ <module name="FileContentsHolder"/>
+
<module name="LeftCurly">
<property name="option" value="nl"/>
</module>
@@ -206,4 +210,12 @@ under the License.
<!-- See http://checkstyle.sourceforge.net/config_misc.html#UniqueProperties -->
<module name="UniqueProperties"/>
+ <!-- Support CHECKSTYLE_OFF: regexp and CHECKSTYLE_ON: regexp comments to disable/enable some checks -->
+ <!-- see http://checkstyle.sourceforge.net/config.html#SuppressionCommentFilter -->
+ <module name="SuppressionCommentFilter">
+ <property name="offCommentFormat" value="CHECKSTYLE_OFF\: (.+)"/>
+ <property name="onCommentFormat" value="CHECKSTYLE_ON\: (.+)"/>
+ <property name="checkFormat" value="$1"/>
+ </module>
+
</module>