This is an automated email from the ASF dual-hosted git repository.

valdar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new da11d89  Fixed CAMEL-14526: is it not possible to use //CHECSTYLE:OFF 
for checks like LineLength.
     new 78f7ddd  Merge pull request #3553 from valdar/CAMEL-14526
da11d89 is described below

commit da11d89ace49a6f8faa222e02b140a9b183e56aa
Author: Andrea Tarocchi <andrea.taroc...@gmail.com>
AuthorDate: Fri Feb 7 22:17:57 2020 +0100

    Fixed CAMEL-14526: is it not possible to use //CHECSTYLE:OFF for checks 
like LineLength.
---
 buildingtools/src/main/resources/camel-checkstyle.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/buildingtools/src/main/resources/camel-checkstyle.xml 
b/buildingtools/src/main/resources/camel-checkstyle.xml
index ad8be30..eb1622f 100644
--- a/buildingtools/src/main/resources/camel-checkstyle.xml
+++ b/buildingtools/src/main/resources/camel-checkstyle.xml
@@ -96,6 +96,16 @@ lengths, if/try depths, etc...
         <property name="max" value="250"/>
     </module>
 
+    <module name="SuppressWithPlainTextCommentFilter">
+        <property name="offCommentFormat" value="CHECKSTYLE\:OFF"/>
+        <property name="onCommentFormat" value="CHECKSTYLE\:ON"/>
+    </module>
+    <module name="SuppressWithPlainTextCommentFilter">
+        <property name="offCommentFormat" value="CHECKSTYLE.OFF\:([\w\|]+)"/>
+        <property name="onCommentFormat" value="CHECKSTYLE.ON\:([\w\|]+)"/>
+        <property name="checkFormat" value="$1"/>
+    </module>
+
     <module name="TreeWalker">
         <module name="SuppressWarningsHolder"/>
         <!-- Checks for Javadoc comments.                     -->

Reply via email to