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="SuppressWithPlainTextCommentFilter">
13      <property name="offCommentFormat" value="CSOFF\: ALMOST_ALL"/>
14      <property name="onCommentFormat" value="CSON\: ALMOST_ALL"/>
15      <property name="checkFormat" value="^((?!(RegexpSinglelineCheck)).)*$"/>
16    </module>
17  
18  </module>
19  */
20  
21  package com.puppycrawl.tools.checkstyle.filters.suppresswithplaintextcommentfilter;
22  
23  // xdoc section -- start
24  public class Example5 {
25    // CHECKSTYLE_OFF: ALMOST_ALL
26    public static final int MAX_ITEMS = 100;
27    private String[] stringArray;
28    // CHECKSTYLE_ON: ALMOST_ALL
29    private int[] intArray;
30  }
31  // xdoc section -- end