1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="Regexp"> 5 <property name="format" value="// This code is copyrighted\."/> 6 </module> 7 </module> 8 </module> 9 */ 10 // violation 9 lines above 'missing in file.' 11 12 package com.puppycrawl.tools.checkstyle.checks.regexp.regexp; 13 14 // xdoc section -- start 15 /* violation on first line 'Required pattern missing in a file.' */ 16 /* 17 * Some Copyright 18 */ 19 public class Example2 {} 20 // xdoc section -- end