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 <property name="ignoreCase" value="true"/> 8 </module> 9 </module> 10 </module> 11 */ 12 13 package com.puppycrawl.tools.checkstyle.checks.coding.illegaltokentext; 14 15 // xdoc section -- start 16 public class Example2 { 17 public void myTest() { 18 String test = "a href"; // violation 19 String test2 = "A href"; // violation 20 } 21 } 22 // xdoc section -- end