This repository was archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ruleset
99 lines (78 loc) · 3.74 KB
/
.ruleset
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0"?>
<ruleset name="pmd-rules">
<description>5AM PMD Rules</description>
<exclude-pattern>.*/grid/legacy/build/.*</exclude-pattern>
<exclude-pattern>.*/grid/legacy/src/gov/nih/nci/cagrid/caarray/service/ServiceConfiguration\.java</exclude-pattern>
<exclude-pattern>.*/grid/legacy/src/gov/nih/nci/cagrid/caarray/service/CaArraySvcConfiguration\.java</exclude-pattern>
<exclude-pattern>.*/grid/legacy/src/gov/nih/nci/cagrid/caarray/client/CaArraySvcClient\.java</exclude-pattern>
<exclude-pattern>.*/grid/legacy/src/gov/nih/nci/cagrid/caarray/service/globus/.*</exclude-pattern>
<exclude-pattern>.*/grid/v1_0/build/.*</exclude-pattern>
<exclude-pattern>.*/grid/v1_0/src/gov/nih/nci/caarray/services/external/v1_0/grid/service/CaArraySvc_v1_0Configuration\.java</exclude-pattern>
<exclude-pattern>.*/grid/v1_0/src/gov/nih/nci/caarray/services/external/v1_0/grid/client/CaArraySvc_v1_0Client\.java</exclude-pattern>
<exclude-pattern>.*/grid/v1_0/src/gov/nih/nci/caarray/services/external/v1_0/grid/service/globus/.*</exclude-pattern>
<exclude-pattern>.*/grid/v1_0/src/gov/nih/nci/cagrid/enumeration/.*</exclude-pattern>
<exclude-pattern>.*/software/test/.*</exclude-pattern>
<exclude-pattern>.*/software/load-test/.*</exclude-pattern>
<exclude-pattern>.*/qa/docs/.*</exclude-pattern>
<rule ref="rulesets/basic.xml" />
<rule ref="rulesets/braces.xml" />
<rule ref="rulesets/clone.xml" />
<rule ref="rulesets/codesize.xml" >
<exclude name="ExcessivePublicCount" />
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength">
<properties>
<property name="minimum" value="50" />
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveClassLength">
<properties>
<property name="minimum" value="500" />
</properties>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
<properties>
<property name="minimum" value="6" />
</properties>
</rule>
<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="7" />
</properties>
</rule>
<rule ref="rulesets/coupling.xml">
<exclude name="ExcessiveImports" />
</rule>
<rule ref="rulesets/design.xml">
<exclude name="AbstractClassWithoutAbstractMethod" />
<exclude name="EmptyMethodInAbstractClassShouldBeAbstract" />
<exclude name="AvoidSynchronizedAtMethodLevel" />
<exclude name="CloseResource" />
<exclude name="ConfusingTernary" />
<exclude name="MissingStaticMethodInNonInstantiatableClass" />
<exclude name="UseSingleton" />
</rule>
<rule ref="rulesets/finalizers.xml" />
<rule ref="rulesets/imports.xml" />
<rule ref="rulesets/javabeans.xml">
<exclude name="BeanMembersShouldSerialize" />
</rule>
<rule ref="rulesets/logging-jakarta-commons.xml" />
<rule ref="rulesets/logging-java.xml" />
<rule ref="rulesets/migrating.xml" />
<rule ref="rulesets/naming.xml">
<exclude name="LongVariable" />
<exclude name="ShortVariable" />
</rule>
<rule ref="rulesets/optimizations.xml">
<exclude name="AvoidInstantiatingObjectsInLoops" />
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="MethodArgumentCouldBeFinal" />
</rule>
<rule ref="rulesets/strictexception.xml" />
<rule ref="rulesets/strings.xml">
<exclude name="InsufficientStringBufferDeclaration" />
</rule>
<rule ref="rulesets/sunsecure.xml" />
<rule ref="rulesets/unusedcode.xml" />
</ruleset>