-
Notifications
You must be signed in to change notification settings - Fork 107
/
pmd-ruleset.xml
40 lines (40 loc) · 1.64 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
38
39
40
<?xml version="1.0"?>
<ruleset name="GripRuleset"
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">
<rule ref="rulesets/java/basic.xml" />
<rule ref="rulesets/java/braces.xml" />
<rule ref="rulesets/java/design.xml">
<exclude name="AccessorClassGeneration" />
<exclude name="AvoidSynchronizedAtMethodLevel" />
<exclude name="CloseResource" />
<exclude name="ConfusingTernary" />
<exclude name="UncommentedEmptyConstructor" />
<exclude name="UseUtilityClass" />
<exclude name="UseVarargs" />
</rule>
<rule ref="rulesets/java/empty.xml" />
<rule ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
</rule>
<rule ref="rulesets/java/junit.xml">
<exclude name="JUnitTestContainsTooManyAsserts" />
</rule>
<rule ref="rulesets/java/logging-java.xml">
<exclude name="GuardLogStatementJavaUtil" />
</rule>
<rule ref="rulesets/java/migrating.xml" />
<rule ref="rulesets/java/optimizations.xml">
<exclude name="AvoidInstantiatingObjectsInLoops" />
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="MethodArgumentCouldBeFinal" />
<exclude name="RedundantFieldInitializer" />
</rule>
<rule ref="rulesets/java/strings.xml">
<exclude name="AvoidDuplicateLiterals" />
</rule>
<rule ref="rulesets/java/unnecessary.xml">
<exclude name="UselessParentheses" />
</rule>
</ruleset>