View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="RegexpSingleline">
4       <property name="format" value="^[ ]*\* This file is copyrighted"/>
5       <property name="minimum" value="1"/>
6       <!--  Need to specify a maximum, so 10 times is more than enough. -->
7       <property name="maximum" value="10"/>
8       <property name="message"
9                 value="File must contain copyright statement"/>
10    </module>
11  </module>
12  */
13  
14  // xdoc section -- start
15  package com.puppycrawl.tools.checkstyle.checks.regexp.regexpsingleline;
16  /* violation on first line 'File must contain copyright statement' */
17  /**
18   * MyClass as a configuration example.
19   */
20  public class Example5 {}
21  // xdoc section -- end
22  // violation 21 lines above 'File must contain copyright statement'