-
Notifications
You must be signed in to change notification settings - Fork 7
/
java-basic-default-ruleset.xml
42 lines (34 loc) · 2.55 KB
/
java-basic-default-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
<?xml version="1.0"?>
<ruleset name="Basic"
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">
<description>
The Basic ruleset contains a collection of good practices which should be followed.
</description>
<!-- Rules, that have been moved into a category -->
<rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" deprecated="true" />
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" deprecated="true" />
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" deprecated="true" />
<rule ref="category/java/errorprone.xml/AvoidUsingOctalValues" deprecated="true" />
<rule ref="category/java/errorprone.xml/BrokenNullCheck" deprecated="true" />
<rule ref="category/java/errorprone.xml/CheckSkipResult" deprecated="true" />
<rule ref="category/java/errorprone.xml/ClassCastExceptionWithToArray" deprecated="true" />
<rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices" deprecated="true" />
<rule ref="category/java/errorprone.xml/JumbledIncrementer" deprecated="true" />
<rule ref="category/java/errorprone.xml/MisplacedNullCheck" deprecated="true" />
<rule ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode" deprecated="true" />
<rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock" deprecated="true" />
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" deprecated="true" />
<rule ref="category/java/multithreading.xml/AvoidThreadGroup" deprecated="true" />
<rule ref="category/java/multithreading.xml/DontCallThreadRun" deprecated="true" />
<rule ref="category/java/multithreading.xml/DoubleCheckedLocking" deprecated="true" />
<rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP" deprecated="true" />
<rule ref="category/java/bestpractices.xml/CheckResultSet" deprecated="true" />
<rule ref="category/java/codestyle.xml/ExtendsObject" deprecated="true" />
<rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop" deprecated="true" />
<rule ref="category/java/performance.xml/BigIntegerInstantiation" deprecated="true" />
<rule ref="category/java/performance.xml/BooleanInstantiation" deprecated="true" />
<rule ref="category/java/design.xml/CollapsibleIfStatements" deprecated="true" />
<rule ref="category/java/design.xml/SimplifiedTernary" deprecated="true" />
</ruleset>