View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="SuppressWithNearbyCommentFilter">
5         <property name="commentFormat" value="@cs-\: ([\w\|]+) influence (\d+)"/>
6         <property name="checkFormat" value="$1"/>
7         <property name="influenceFormat" value="$2"/>
8       </module>
9       <module name="ClassDataAbstractionCoupling">
10        <property name="max" value="1" />
11      </module>
12      <module name="MagicNumber"/>
13    </module>
14  </module>
15  */
16  
17  package com.puppycrawl.tools.checkstyle.filters.suppresswithnearbycommentfilter;
18  // xdoc section -- start
19  // @cs-: ClassDataAbstractionCoupling influence 2
20  // @cs-: MagicNumber influence 4
21  public class Example8 { // no violations from ClassDataAbstractionCoupling here
22    private Example1 foo = new Example1();
23    private Example2 bar = new Example2();
24    private int value = 10022; // no violations from MagicNumber here
25  }
26  // xdoc section -- end