Repository navigation
Expand file tree
/
Copy pathruleset.xml
More file actions
72 lines (59 loc) · 2.49 KB
/
Copy pathruleset.xml
File metadata and controls
72 lines (59 loc) · 2.49 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="pmd-ruleset-java" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>PMD RuleSet</description>
<rule ref="category/ecmascript/bestpractices.xml" />
<rule ref="category/ecmascript/codestyle.xml" />
<rule ref="category/ecmascript/errorprone.xml" />
<rule ref="rulesets/java/quickstart.xml" />
<rule ref="category/java/bestpractices.xml">
<exclude name="UseVarargs" />
</rule>
<rule ref="category/java/codestyle.xml">
<exclude name="AtLeastOneConstructor" />
<exclude name="CommentDefaultAccessModifier" />
</rule>
<rule ref="category/java/design.xml">
<exclude name="LoosePackageCoupling" />
<exclude name="LawOfDemeter" />
</rule>
<rule ref="category/java/documentation.xml">
<exclude name="CommentRequired" />
</rule>
<rule ref="category/java/errorprone.xml">
<exclude name="BeanMembersShouldSerialize" />
</rule>
<rule ref="category/java/multithreading.xml">
<exclude name="UseConcurrentHashMap" />
</rule>
<rule ref="category/java/performance.xml" />
<rule ref="category/java/security.xml" />
<!-- Custom Overrides | Java -->
<rule ref="category/java/bestpractices.xml/JUnitTestContainsTooManyAsserts">
<properties>
<property name="maximumAsserts" value="10" />
</properties>
</rule>
<rule ref="category/java/codestyle.xml/ShortClassName">
<properties>
<property name="minimum" value="4" />
</properties>
</rule>
<rule ref="category/java/design.xml/TooManyMethods">
<properties>
<property name="maxmethods" value="50" />
</properties>
</rule>
<rule ref="category/jsp/bestpractices.xml" />
<rule ref="category/jsp/codestyle.xml" />
<rule ref="category/jsp/design.xml" />
<rule ref="category/jsp/errorprone.xml" />
<rule ref="category/jsp/security.xml" />
<rule ref="category/jsp/bestpractices.xml" />
<rule ref="category/jsp/codestyle.xml" />
<rule ref="category/jsp/design.xml" />
<rule ref="category/jsp/errorprone.xml" />
<rule ref="category/pom/errorprone.xml" />
<rule ref="category/xml/errorprone.xml" />
<rule ref="category/xsl/codestyle.xml" />
<rule ref="category/xsl/performance.xml" />
</ruleset>