+ To configure a filter to suppress Check's violation message which matches
+ specified message in messageFormat (so suppression will be not only by
+ Check's name, but by message text additionally, as the same Check could report
+ different by message format violations) between a comment
+ containing stop and comment containing resume:
+
+
+
+<module name="SuppressionCommentFilter">
+ <property name="offCommentFormat" value="stop"/>
+ <property name="onCommentFormat" value="resume"/>
+ <property name="checkFormat" value="IllegalTypeCheck"/>
+ <property name="messageFormat" value="^Declaring variables, return values or parameters of type 'GregorianCalendar' is not allowed.$"/>
+</module>
+
+
+
+ Code before filter above is applied with Check's audit events:
+
+
+
+...
+GregorianCalendar calendar; // Warning here: Declaring variables, return values or parameters of type 'GregorianCalendar' is not allowed.
+HashSet hashSet; // Warning here: Declaring variables, return values or parameters of type 'HashSet' is not allowed.
+...
+
+
+
+ Code after filter is applied:
+
+
+
+...
+//stop
+GregorianCalendar calendar; // No warning here as it is suppressed by filter.
+HashSet hashSet; // Warning here: Declaring variables, return values or parameters of type 'HashSet' is not allowed.
+//resume
+...
+
+