OSDN Git Service

ad3dba92dbd2835846325efc9834dd89882575ec
[mikutoga/TogaGem.git] / src / main / config / pmdrules.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4     PMD用ルールセット定義
5
6     PMD [ http://pmd.sourceforge.net/ ] 4.2.5 以降用に記述されています。
7
8     Copyright(c) 2010 olyutorskii
9 -->
10
11 <ruleset
12   xmlns="http://pmd.sf.net/ruleset/1.0.0"
13   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14   xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
15   http://pmd.sf.net/ruleset_xml_schema.xsd"
16   xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
17   name="Custom ruleset"
18 >
19
20     <rule ref="rulesets/basic.xml">
21         <exclude name="UnnecessaryReturn" />
22     </rule>
23
24     <rule ref="rulesets/braces.xml">
25         <exclude name="IfElseStmtsMustUseBraces" />
26         <exclude name="IfStmtsMustUseBraces" />
27     </rule>
28
29     <rule ref="rulesets/codesize.xml">
30         <exclude name="TooManyMethods" />
31     </rule>
32     <rule ref="rulesets/codesize.xml/TooManyMethods">
33         <properties>
34             <property name="maxmethods" value="25"/>
35         </properties>
36     </rule>
37
38     <rule ref="rulesets/clone.xml" />
39
40     <rule ref="rulesets/controversial.xml">
41         <exclude name="NullAssignment" />
42         <exclude name="OnlyOneReturn" />
43         <exclude name="DefaultPackage" />
44         <exclude name="DataflowAnomalyAnalysis" />
45     </rule>
46
47     <rule ref="rulesets/coupling.xml" />
48
49     <rule ref="rulesets/design.xml">
50         <exclude name="ConfusingTernary" />
51         <exclude name="UnnecessaryLocalBeforeReturn" />
52     </rule>
53
54     <rule ref="rulesets/finalizers.xml" />
55
56     <rule ref="rulesets/imports.xml" />
57
58     <rule ref="rulesets/logging-java.xml" />
59
60     <rule ref="rulesets/migrating.xml" />
61     <rule ref="rulesets/migrating_to_15.xml" />
62
63     <rule ref="rulesets/naming.xml">
64         <exclude name="ShortVariable" />
65         <exclude name="LongVariable" />
66         <exclude name="AvoidFieldNameMatchingMethodName" />
67     </rule>
68     <rule ref="rulesets/naming.xml/LongVariable">
69         <properties>
70             <property name="minimum" value="25"/>
71         </properties>
72     </rule>
73
74     <rule ref="rulesets/optimizations.xml">
75         <exclude name="LocalVariableCouldBeFinal" />
76         <exclude name="MethodArgumentCouldBeFinal" />
77     </rule>
78
79     <rule ref="rulesets/strictexception.xml">
80         <exclude name="AvoidThrowingNullPointerException" />
81     </rule>
82
83     <rule ref="rulesets/strings.xml" />
84
85     <rule ref="rulesets/sunsecure.xml" />
86
87     <rule ref="rulesets/typeresolution.xml" />
88
89     <rule ref="rulesets/unusedcode.xml" />
90
91 </ruleset>
92
93 <!-- EOF -->