View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="SuppressWithNearbyTextFilter">
4       <property name="idPattern" value="ignoreMe"/>
5     </module>
6     <module name="LineLength">
7       <property name="max" value="55"/>
8     </module>
9     <module name="TreeWalker">
10      <module name="MagicNumber">
11        <property name="id" value="ignoreMe"/>
12      </module>
13    </module>
14  </module>
15  */
16  package com.puppycrawl.tools.checkstyle.filters.suppresswithnearbytextfilter;
17  // xdoc section -- start
18  public class Example4 {
19    int a = 42; // SUPPRESS CHECKSTYLE because I want to
20    static final int LONG_VAR_NAME_TO_TAKE_MORE_THAN_55_CHARS = 22;
21    // violation above 'Line is longer ...'
22  }
23  // xdoc section -- end