-
Notifications
You must be signed in to change notification settings - Fork 25
/
pmd.xml
49 lines (47 loc) · 2.04 KB
/
pmd.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
<?xml version="1.0"?><!--
~ This file is part of the Illarion project.
~
~ Copyright © 2016 - Illarion e.V.
~
~ Illarion is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ Illarion is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
-->
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Illarion Ruleset"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
This is the PMD ruleset for Illarion.
</description>
<rule ref="rulesets/java/basic.xml" />
<rule ref="rulesets/java/braces.xml" />
<rule ref="rulesets/java/controversial.xml/DontImportSun" />
<rule ref="rulesets/java/controversial.xml/SuspiciousOctalEscape" />
<rule ref="rulesets/java/design.xml">
<exclude name="SwitchStmtsShouldHaveDefault" />
<exclude name="EmptyMethodInAbstractClassShouldBeAbstract" />
</rule>
<rule ref="rulesets/java/imports.xml" />
<rule ref="rulesets/java/finalizers.xml" />
<rule ref="rulesets/java/strings.xml">
<exclude name="AvoidDuplicateLiterals" />
<exclude name="ConsecutiveAppendsShouldReuse" />
</rule>
<rule ref="rulesets/java/sunsecure.xml" />
<rule ref="rulesets/java/unnecessary.xml">
<exclude name="UselessParentheses" />
</rule>
<rule ref="rulesets/java/unusedcode.xml" />
<rule ref="rulesets/java/design.xml/AvoidDeeplyNestedIfStmts">
<properties>
<property name="problemDepth" value="5" />
</properties>
</rule>
</ruleset>