File: import-control-test.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 (28 lines) | stat: -rw-r--r-- 959 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
<?xml version="1.0"?>
<!DOCTYPE import-control PUBLIC
    "-//Checkstyle//DTD ImportControl Configuration 1.4//EN"
    "https://checkstyle.org/dtds/import_control_1_4.dtd">

<import-control pkg="com.puppycrawl.tools.checkstyle">

  <!-- Disallow obsolete Junit API -->
  <disallow pkg="org.junit" exact-match="true"/>
  <disallow pkg="junit.framework" />

  <!-- Conflicts with normal tests and pitest.
       See examples in https://github.com/checkstyle/checkstyle/issues/6439 -->
  <allow class="org.powermock.reflect.Whitebox" />
  <allow class="org.mockito.internal.util.Checks" />
  <disallow pkg="org\.powermock.*" regex="true" />
  <disallow pkg="org\.mockito.*" regex="true" />

  <allow pkg=".*" regex="true" />

  <!-- Till https://github.com/checkstyle/checkstyle/issues/7368 -->
  <subpackage name="internal">
    <subpackage name="powermock">
      <allow pkg="org.junit" local-only="true"/>
    </subpackage>
  </subpackage>

</import-control>