forked from apache/mina-sshd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsshd-pmd-ruleset.xml
41 lines (31 loc) · 1.75 KB
/
sshd-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
41
<?xml version="1.0"?>
<ruleset name="MINA SSHD PMD ruleset"
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>
This ruleset defines the PMD rules for MINA SSHD project
</description>
<!-- See https://pmd.github.io/pmd-5.6.1/pmd-java/rules/index.html -->
<rule ref="rulesets/java/basic.xml/AvoidMultipleUnaryOperators" />
<rule ref="rulesets/java/basic.xml/AvoidUsingOctalValues" />
<rule ref="rulesets/java/basic.xml/BooleanInstantiation" />
<rule ref="rulesets/java/basic.xml/BrokenNullCheck" />
<rule ref="rulesets/java/basic.xml/ExtendsObject" />
<rule ref="rulesets/java/basic.xml/MisplacedNullCheck" />
<rule ref="rulesets/java/basic.xml/OverrideBothEqualsAndHashcode" />
<rule ref="rulesets/java/basic.xml/ReturnFromFinallyBlock" />
<rule ref="rulesets/java/basic.xml/UnconditionalIfStatement" />
<rule ref="rulesets/java/braces.xml" />
<rule ref="rulesets/java/clone.xml/ProperCloneImplementation" />
<rule ref="rulesets/java/clone.xml/CloneMethodMustImplementCloneable" />
<rule ref="rulesets/java/controversial.xml/AssignmentInOperand" />
<rule ref="rulesets/java/controversial.xml/AtLeastOneConstructor" />
<rule ref="rulesets/java/design.xml/UseNotifyAllInsteadOfNotify" />
<rule ref="rulesets/java/empty.xml">
<exclude name="EmptyCatchBlock" /> <!-- Enforced by checkstyle -->
</rule>
<rule ref="rulesets/java/finalizers.xml" />
<rule ref="rulesets/java/javabeans.xml/MissingSerialVersionUID" />
<rule ref="rulesets/java/logging-java.xml/AvoidPrintStackTrace" />
</ruleset>