1 /*xml
2 <module name="Checker">
3 <module name="FileLength">
4 <property name="max" value="5"/>
5 </module>
6 </module>
7 */
8 // violation 7 lines above 'File length is 18 lines (max allowed is 5)'
9 package com.puppycrawl.tools.checkstyle.checks.sizes.filelength;
10
11 // xdoc section -- start
12 public class Example2 {
13 public void myTest() {
14 // small class with more than 5 lines
15 String test = "Some content"; // there is violation
16 }
17 }
18 // xdoc section -- end