File: checkstyle_input_checks.xml

package info (click to toggle)
checkstyle 8.36.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 32,964 kB
  • sloc: java: 234,352; xml: 75,743; javascript: 258; sh: 115; sql: 6; makefile: 5
file content (38 lines) | stat: -rw-r--r-- 1,587 bytes parent folder | download
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 &quot;/* Config:&quot;."/>
    </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 &quot;// ok&quot; and/or &quot;// violation&quot;."/>
    </module>
  </module>
</module>