1 /*xml 2 <module name="Checker"> 3 <module name="RegexpHeader"> 4 <property 5 name="header" 6 value="^// Copyright \(C\) (\d\d\d\d -)? 2004 MyCompany$ 7 \n^// All rights reserved$"/> 8 </module> 9 </module> 10 */ 11 // xdoc section -- start 12 package com.puppycrawl.tools.checkstyle.checks.header.regexpheader; 13 /* violation on first line 'Line does not match expected header line' */ 14 public class Example3 { } 15 // xdoc section -- end 16 // violation 15 lines above 'Line does not match expected header line'