-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
88 lines (82 loc) · 3.94 KB
/
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
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
<?xml version="1.0"?>
<ruleset name="Aurora Java rules"
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>Aurora Java rules</description>
<rule ref="category/java/bestpractices.xml">
<exclude name="UseVarargs" />
</rule>
<rule ref="category/java/codestyle.xml">
<exclude name="LongVariable" />
<exclude name="ShortVariable" />
<exclude name="AvoidUsingNativeCode" />
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="MethodArgumentCouldBeFinal" />
<exclude name="OnlyOneReturn" />
<exclude name="UseExplicitTypes" />
</rule>
<rule ref="category/java/codestyle.xml/AvoidDollarSigns">
<properties>
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[matches(@SimpleName, 'AddFile|KeysReceived|MainFrame|SendKeys|Settings|CompletedItems')]" />
</properties>
</rule>
<rule ref="category/java/codestyle.xml/MethodNamingConventions">
<properties>
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[matches(@SimpleName, 'AddFile|KeysReceived|MainFrame|SendKeys|Settings|CompletedItems')]" />
</properties>
</rule>
<rule ref="category/java/codestyle.xml/UseUnderscoresInNumericLiterals">
<properties>
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[matches(@SimpleName, 'AddFile|KeysReceived|MainFrame|SendKeys|Settings|CompletedItems')]" />
</properties>
</rule>
<rule ref="category/java/design.xml">
<exclude name="LawOfDemeter" />
<exclude name="LoosePackageCoupling" />
<exclude name="DataClass" />
</rule>
<rule ref="category/java/design.xml/ExcessiveImports">
<properties>
<property name="minimum" value="35" />
</properties>
</rule>
<rule ref="category/java/design.xml/NcssCount">
<properties>
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[matches(@SimpleName, 'AddFile|KeysReceived|MainFrame|SendKeys|Settings|CompletedItems')]" />
</properties>
</rule>
<rule ref="category/java/design.xml/SingularField">
<properties>
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[matches(@SimpleName, 'AddFile|KeysReceived|MainFrame|SendKeys|Settings|CompletedItems')]" />
</properties>
</rule>
<rule ref="category/java/design.xml/TooManyFields">
<properties>
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[matches(@SimpleName, 'AddFile|KeysReceived|MainFrame|SendKeys|Settings|CompletedItems')]" />
</properties>
</rule>
<rule ref="category/java/design.xml/CognitiveComplexity">
<properties>
<property name="reportLevel" value="20" />
</properties>
</rule>
<rule ref="category/java/errorprone.xml">
<exclude name="DoNotTerminateVM" />
<!-- <exclude name="BeanMembersShouldSerialize" />-->
<!-- <exclude name="NonSerializableClass" />-->
</rule>
<rule ref="category/java/errorprone.xml/NonStaticInitializer">
<properties>
<property name="violationSuppressXPath" value="./ancestor::ClassDeclaration[matches(@SimpleName, 'AddFile|KeysReceived|MainFrame|SendKeys|Settings|CompletedItems')]" />
</properties>
</rule>
<rule ref="category/java/multithreading.xml">
<exclude name="DoNotUseThreads" />
</rule>
<rule ref="category/java/performance.xml">
<exclude name="AvoidInstantiatingObjectsInLoops" />
<exclude name="StringInstantiation" /> <!-- TODO: RESTORE WHEN PMD 7.0.1 IS RELEASED -->
</rule>
<rule ref="category/java/security.xml" />
</ruleset>