View Javadoc
1   /*xml
2   <module name="Checker">
3     <property name="fileExtensions" value="xml"/>
4   
5     <module name="RegexpSingleline">
6       <property name="format"
7           value="param\s+name=&quot;type&quot;\s+value=&quot;code&quot;"/>
8       <property name="message"
9           value="Type code is not allowed. Use type raw instead."/>
10    </module>
11  
12    <module name="RegexpSingleline">
13      <property name="format"
14          value="param\s+name=&quot;type&quot;\s+value=&quot;config&quot;"/>
15      <property name="message" value="Type config is not allowed in this file."/>
16    </module>
17  
18    <module name="SuppressWithPlainTextCommentFilter">
19      <property name="offCommentFormat" value="CSOFF"/>
20      <property name="onCommentFormat" value="CSON"/>
21      <property name="checkFormat" value="RegexpSinglelineCheck"/>
22      <property name="messageFormat"
23          value="^Type code is not allowed. Use type raw instead.$"/>
24    </module>
25  </module>
26  */
27  
28  package com.puppycrawl.tools.checkstyle.filters.suppresswithplaintextcommentfilter;
29  
30  public class Example6 { }
31  
32  // xdoc section -- start
33  // xdoc section -- end