diff --git a/anttask.html b/anttask.html index 6a2f97ac6e..94e0d0d081 100644 --- a/anttask.html +++ b/anttask.html @@ -1,6 +1,6 @@ @@ -29,8 +29,8 @@

Leiningen

-
[com.puppycrawl.tools/checkstyle "10.12.3"]
+
[com.puppycrawl.tools/checkstyle "10.12.4"]
diff --git a/dependency-updates-report.html b/dependency-updates-report.html index b50b6872ed..4a3fa15e73 100644 --- a/dependency-updates-report.html +++ b/dependency-updates-report.html @@ -1,6 +1,6 @@ @@ -29,8 +29,8 @@
-

+

To configure the filter to accept variable checkPattern and lineRange:

@@ -471,7 +471,7 @@

Examples

</module> -

+

Example:

@@ -484,7 +484,7 @@

Examples

int e = 46; // violation -

+

To configure the filter to suppress LineLength violations for lines containing a URL:

@@ -503,7 +503,7 @@

Examples

</module> -

+

Example:

diff --git a/filters/suppresswithplaintextcommentfilter.html b/filters/suppresswithplaintextcommentfilter.html index 9919f81842..ac7456c7d1 100644 --- a/filters/suppresswithplaintextcommentfilter.html +++ b/filters/suppresswithplaintextcommentfilter.html @@ -1,6 +1,6 @@ @@ -29,8 +29,8 @@ +

Example:

+
 -- stop tab check
@@ -354,7 +356,7 @@ 

Examples

SELECT 1 // will warn here if there is a tab character on line
-

+

To configure a filter so that name of suppressed check mentioned in comment CSOFF: regexp and CSON: regexp mark a matching check @@ -375,6 +377,8 @@

Examples

</module> +

Example:

+
 // CSOFF: RegexpSinglelineCheck
@@ -387,7 +391,7 @@ 

Examples

<property name="checkstyle.pattern.todo" value="NOTHingWillMatCH_-"/>
-

+

To configure a filter to suppress all audit events between a comment containing CHECKSTYLE_OFF: ALMOST_ALL and a comment containing CHECKSTYLE_OFF: ALMOST_ALL except for the EqualsHashCode @@ -411,6 +415,8 @@

Examples

</module> +

Example:

+
 // CHECKSTYLE_OFF: ALMOST_ALL
@@ -420,7 +426,7 @@ 

Examples

private int array1 [];
-

+

To configure a filter to suppress Check's violation message which matches specified message in messageFormat (so suppression will not be only by Check's name, but also by message text, as the same Check can report @@ -449,29 +455,8 @@

Examples

where ID is the ID of checks you want to suppress.

-

- Examples of Checkstyle checks configuration: -

- -
-
-<module name="RegexpSinglelineJava">
-  <property name="id" value="count"/>
-  <property name="format" value="^.*COUNT(*).*$"/>
-  <property name="message"
-    value="Don't use COUNT(*), use COUNT(1) instead."/>
-</module>
-
-<module name="RegexpSinglelineJava">
-  <property name="id" value="join"/>
-  <property name="format" value="^.*JOIN\s.+\s(ON|USING)$"/>
-  <property name="message"
-    value="Don't use JOIN, use sub-select instead."/>
-</module>
-        
- -

- Example of SuppressWithPlainTextCommentFilter configuration +

+ Example of Checkstyle checks and SuppressWithPlainTextCommentFilter configuration (checkFormat which is set to '$1' points that ID of the checks is in the first group of offCommentFormat and onCommentFormat regular expressions): @@ -488,9 +473,27 @@

Examples

<property name="idFormat" value="$1"/> </module> + <module name="TreeWalker"> + <module name="RegexpSinglelineJava"> + <property name="id" value="count"/> + <property name="format" value="^.*COUNT(*).*$"/> + <property name="message" + value="Don't use COUNT(*), use COUNT(1) instead."/> + </module> + + <module name="RegexpSinglelineJava"> + <property name="id" value="join"/> + <property name="format" value="^.*JOIN\s.+\s(ON|USING)$"/> + <property name="message" + value="Don't use JOIN, use sub-select instead."/> + </module> + </module> + </module> +

Example:

+
 -- CSOFF join (it is ok to use join here for performance reasons)
@@ -504,7 +507,7 @@ 

Examples

-- CSON count
-

+

Example of how to configure the check to suppress more than one check (Checker is configured to check only sql files).

@@ -522,6 +525,8 @@

Examples

</module> +

Example:

+
 -- @cs-: RegexpSinglelineCheck
diff --git a/google_style.html b/google_style.html
index 359085f960..eeec614f9b 100644
--- a/google_style.html
+++ b/google_style.html
@@ -1,6 +1,6 @@
 
 
@@ -29,8 +29,8 @@