View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="RegexpOnFilename">
4       <property name="fileNamePattern" value="README"/>
5       <property name="fileExtensions" value="md"/>
6       <property name="match" value="false"/>
7       <message key="regexp.filename.mismatch"
8         value="No *.md files other than README.md"/>
9     </module>
10  </module>
11  */
12  package com.puppycrawl.tools.checkstyle.checks.regexp.regexponfilename;
13  /*
14  // xdoc section -- start
15  .../checkstyle.xml
16  .../Test Example1.xml
17  .../TestExample2.xml
18  .../TestExample3.md  // violation, 'No *.md files other than README.md'
19  .../TestExample4.xml
20  // xdoc section -- end
21  */
22  class Example3{}