-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ruleset.xml
36 lines (28 loc) · 1.29 KB
/
test.ruleset.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
<?xml version="1.0"?>
<ruleset name="emu-test-ruleset"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>Emu ruleset for testing code</description>
<rule ref="category/java/bestpractices.xml" />
<rule ref="category/java/codestyle.xml">
<!-- Avoid reporting variables with a short name -->
<exclude name="ShortVariable" />
<!-- Avoid reporting test classes without constructors -->
<exclude name="AtLeastOneConstructor" />
</rule>
<rule ref="category/java/design.xml" />
<rule ref="category/java/documentation.xml">
<!-- Avoid reporting comments with too many lines -->
<exclude name="CommentSize" />
<!-- Avoid reporting missing comments on private fields -->
<exclude name="CommentRequired" />
</rule>
<rule ref="category/java/errorprone.xml" />
<rule ref="category/java/multithreading.xml" />
<rule ref="category/java/performance.xml">
<!-- Avoid reporting redundant field initialization -->
<exclude name="RedundantFieldInitializer" />
</rule>
<rule ref="category/java/security.xml" />
</ruleset>