1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="IllegalTokenText"> 5 <property name="tokens" value="STRING_LITERAL"/> 6 <property name="format" value="a href"/> 7 </module> 8 </module> 9 </module> 10 */ 11 12 package com.puppycrawl.tools.checkstyle.checks.coding.illegaltokentext; 13 14 // xdoc section -- start 15 public class Example1 { 16 public void myTest() { 17 String test = "a href"; // violation 18 String test2 = "A href"; // OK, case is sensitive 19 } 20 } 21 // xdoc section -- end