View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="SuppressWithNearbyTextFilter">
4       <property name="nearbyTextPattern" value="DO NOT CHECK THIS LINE"/>
5     </module>
6     <module name="TreeWalker">
7       <module name="MagicNumber"/>
8     </module>
9   </module>
10  */
11  package com.puppycrawl.tools.checkstyle.filters.suppresswithnearbytextfilter;
12  // xdoc section -- start
13  public class Example2 {
14    int a = 42; // DO NOT CHECK THIS LINE
15    int b = 43; // violation, "'43' is a magic number."
16  }
17  // xdoc section -- end