forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
import-control-test.xml
38 lines (32 loc) · 1.38 KB
/
import-control-test.xml
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 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/6916 -->
<subpackage name="checks">
<allow pkg="org.junit" local-only="true"/>
<subpackage name="(blocks|coding|design|header|imports|indentation|javadoc)" regex="true">
<allow pkg="org.junit"/>
</subpackage>
<subpackage name="(metrics|modifier|naming|regexp|sizes|whitespace)" regex="true">
<allow pkg="org.junit"/>
</subpackage>
</subpackage>
<subpackage name="(ant|api|filefilters|filters|grammar|gui|internal|utils|xpath)" regex="true">
<allow pkg="org.junit"/>
</subpackage>
<file name=".*Test(Support)?" regex="true">
<allow pkg="org.junit"/>
</file>
</import-control>