-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpmd.xml
93 lines (87 loc) · 3.3 KB
/
phpmd.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0"?>
<ruleset name="fh"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<rule ref="rulesets/cleancode.xml">
<exclude name="ElseExpression"/>
<exclude name="MissingImport"/>
<exclude name="StaticAccess"/>
<exclude name="BooleanArgumentFlag"/>
<exclude name="ErrorControlOperator"/>
<exclude name="IfStatementAssignment"/>
</rule>
<!--<rule ref="rulesets/cleancode.xml/StaticAccess">-->
<!--<properties>-->
<!--<property name="exceptions">-->
<!--<value>-->
<!--\League\Csv\Reader,-->
<!--\Swift_Attachment,-->
<!--\TCPDF_FONTS,-->
<!--\TYPO3\CMS\Core\Utility\ExtensionManagementUtility,-->
<!--\TYPO3\CMS\Core\Utility\GeneralUtility,-->
<!--\TYPO3\CMS\Core\Utility\HttpUtility,-->
<!--\TYPO3\CMS\Core\Utility\MailUtility,-->
<!--\TYPO3\CMS\Core\Resource\ResourceFactory,-->
<!--\TYPO3\CMS\Extbase\Utility\DebuggerUtility,-->
<!--\TYPO3\CMS\Extbase\Utility\LocalizationUtility,-->
<!--\TYPO3\CMS\Saltedpasswords\Salt\SaltFactory,-->
<!--</value>-->
<!--</property>-->
<!--</properties>-->
<!--</rule>-->
<rule ref="rulesets/codesize.xml">
<exclude name="ExcessiveMethodLength"/>
<exclude name="TooManyPublicMethods"/>
<exclude name="ExcessiveClassComplexity"/>
<exclude name="CyclomaticComplexity"/>
<exclude name="NPathComplexity"/>
<exclude name="TooManyFields"/>
<exclude name="ExcessivePublicCount"/>
<exclude name="ExcessiveParameterList"/>
</rule>
<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
<properties>
<property name="minimum" value="15"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
<properties>
<property name="maxmethods" value="18"/>
<property name="ignorepattern" value="(^(set|get|is))i"/>
</properties>
</rule>
<rule ref="rulesets/codesize.xml/TooManyFields">
<properties>
<property name="maxfields" value="25"/>
</properties>
</rule>
<rule ref="rulesets/controversial.xml">
<exclude name="Superglobals"/>
<exclude name="CamelCaseVariableName"/>
<exclude name="CamelCaseParameterName"/>
<exclude name="CamelCasePropertyName"/>
<exclude name="CamelCaseMethodName" />
</rule>
<rule ref="rulesets/design.xml">
<exclude name="CouplingBetweenObjects"/>
</rule>
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
<properties>
<property name="maximum" value="20"/>
</properties>
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable" />
<exclude name="LongVariable"/>
<exclude name="ShortVariable"/>
<exclude name="BooleanGetMethodName"/>
</rule>
<rule ref="rulesets/naming.xml/LongVariable">
<properties>
<property name="maximum" value="35"/>
</properties>
</rule>
<!--<rule ref="rulesets/unusedcode.xml" />-->
</ruleset>