1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="haltOnException" value="false"/>
<property name="cacheFile" value="target/cache_input_resources"/>
<!-- Suppressions for resources -->
<module name="SuppressionFilter">
<property name="file"
value="${project.basedir}/config/checkstyle_input_suppressions.xml"/>
</module>
<module name="TreeWalker">
<!-- Check to make sure check UT input files have config and trailing comments -->
<module name="Regexp">
<property name="id" value="ConfigCommentOnTopInputs"/>
<property name="format"
value="(\* Config)"/>
<message key="required.regexp"
value="All check input files in the ''src/(it|test)/resources*/'' folder must
have a comment at the top of the file specifying the check configuration used to
produce the violations, that begins with "/* Config:"."/>
</module>
<module name="Regexp">
<property name="id" value="StyleValidationCommentInInputs"/>
<property name="format"
value="(\/\/ (ok|violation)\n)"/>
<message key="required.regexp"
value="All check input files in the ''src/(it|test)/resources*/'' folder must
have trailing comments "// ok" and/or "// violation"."/>
</module>
</module>
</module>
|