-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpmd_ruleset.xml
37 lines (33 loc) · 1.22 KB
/
pmd_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
<?xml version="1.0"?>
<ruleset name="customruleset">
<description>
Rulesets currently honored by Tinfour.
</description>
<rule ref="rulesets/java/basic.xml"/>
<rule ref="rulesets/java/sunsecure.xml"/>
<rule ref="rulesets/java/braces.xml"/>
<rule ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
</rule>
<rule ref="rulesets/java/design.xml">
<exclude name="UseVarargs" />
<exclude name="GodClass" />
<exclude name="FieldDeclarationsShouldBeAtStartOfClass" />
<exclude name="UseLocaleWithCaseConversions" />
</rule>
<!-- TODO: Revisit optimitization rules, right now a lot of violations.
Try this when you have time to test whether they actually matter
by using the TwinBuildTest. I suspect all the "could be final" rules
are resolved by the compiler anyway. -->
<rule ref="rulesets/java/optimizations.xml">
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="MethodArgumentCouldBeFinal" />
<exclude name="PrematureDeclaration" />
</rule>
<rule ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
</rule>
<rule ref="rulesets/java/unusedcode.xml">
<exclude name="UnusedModifier" />
</rule>
</ruleset>