forked from easimon/alexasonic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset-test.xml
39 lines (39 loc) · 1.73 KB
/
ruleset-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
39
<?xml version="1.0"?>
<ruleset name="AlexaSonic src/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
http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>AlexaSonic src/test ruleset</description>
<exclude-pattern>.*/.mvn/.*</exclude-pattern>
<exclude-pattern>.*/src/main/.*</exclude-pattern>
<rule ref="/category/java/bestpractices.xml">
<!-- False positives in static *-Imports in tests like Mockito.*,
AssertJ... -->
<exclude name="UnusedImports" />
<exclude name="JUnitTestContainsTooManyAsserts" />
</rule>
<rule ref="/category/java/codestyle.xml">
<!-- I want long, self-explanatory names! -->
<exclude name="LongVariable" />
<!-- Tests do not need anything but the default ctor -->
<exclude name="AtLeastOneConstructor" />
<!-- I just disagree with this -->
<exclude name="AvoidFinalLocalVariable" />
</rule>
<rule ref="/category/java/design.xml">
<!-- Too many false positives -->
<exclude name="LawOfDemeter" />
<!-- ORM beans and Configuration classes are data classes - so...? -->
<exclude name="DataClass" />
</rule>
<rule ref="/category/java/errorprone.xml">
<!-- Yes, Bean members should, but not everybody else. -->
<exclude name="BeanMembersShouldSerialize" />
<!-- Spectrum needs non-static initializers -->
<exclude name="NonStaticInitializer" />
</rule>
<rule ref="/category/java/multithreading.xml" />
<rule ref="/category/java/performance.xml" />
<rule ref="/category/java/security.xml" />
</ruleset>