forked from opensourcewebsite-org/opensourcewebsite-org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpmd.xml
More file actions
92 lines (67 loc) · 4.04 KB
/
phpmd.xml
File metadata and controls
92 lines (67 loc) · 4.04 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="PHPMD rule set"
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">
<description>
PHPMD custom rule set for checking code quality
</description>
<!-- @see https://phpmd.org/rules/cleancode.html#booleanargumentflag -->
<rule ref="rulesets/cleancode.xml/BooleanArgumentFlag"/>
<!-- @see http://phpmd.org/rules/codesize.html#excessivemethodlength -->
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength"/>
<!-- @see http://phpmd.org/rules/codesize.html#excessiveclasslength -->
<rule ref="rulesets/codesize.xml/ExcessiveClassLength"/>
<!-- @see http://phpmd.org/rules/codesize.html#excessiveparameterlist -->
<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
<properties>
<property name="minimum" value="4" />
</properties>
</rule>
<!-- @see http://phpmd.org/rules/codesize.html#excessivepubliccount -->
<rule ref="rulesets/codesize.xml/ExcessivePublicCount"/>
<!-- @see http://phpmd.org/rules/codesize.html#excessiveclasscomplexity -->
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity"/>
<!-- @see http://phpmd.org/rules/controversial.html#superglobals -->
<rule ref="rulesets/controversial.xml/Superglobals"/>
<!-- @see http://phpmd.org/rules/controversial.html#camelcaseclassname -->
<!-- Disable because /migrations -->
<!-- <rule ref="rulesets/controversial.xml/CamelCaseClassName"/> -->
<!-- @see http://phpmd.org/rules/controversial.html#camelcasepropertyname -->
<rule ref="rulesets/controversial.xml/CamelCasePropertyName"/>
<!-- @see http://phpmd.org/rules/controversial.html#camelcasemethodname -->
<rule ref="rulesets/controversial.xml/CamelCaseMethodName"/>
<!-- @see http://phpmd.org/rules/controversial.html#camelcaseparametername -->
<rule ref="rulesets/controversial.xml/CamelCaseParameterName"/>
<!-- @see http://phpmd.org/rules/controversial.html#camelcasevariablename -->
<rule ref="rulesets/controversial.xml/CamelCaseVariableName"/>
<!-- @see http://phpmd.org/rules/design.html#exitexpression -->
<rule ref="rulesets/design.xml/ExitExpression"/>
<!-- @see http://phpmd.org/rules/design.html#evalexpression -->
<rule ref="rulesets/design.xml/EvalExpression"/>
<!-- @see http://phpmd.org/rules/design.html#gotostatement -->
<rule ref="rulesets/design.xml/GotoStatement"/>
<!-- @see http://phpmd.org/rules/design.html#numberofchildren -->
<rule ref="rulesets/design.xml/NumberOfChildren"/>
<!-- @see http://phpmd.org/rules/design.html#depthofinheritance -->
<rule ref="rulesets/design.xml/DepthOfInheritance"/>
<!-- @see http://phpmd.org/rules/naming.html#shortmethodname -->
<rule ref="rulesets/naming.xml/ShortMethodName"/>
<!-- @see http://phpmd.org/rules/naming.html#constructorwithnameasenclosingclass -->
<rule ref="rulesets/naming.xml/ConstructorWithNameAsEnclosingClass"/>
<!-- @see http://phpmd.org/rules/naming.html#constantnamingconventions -->
<rule ref="rulesets/naming.xml/ConstantNamingConventions"/>
<!-- @see http://phpmd.org/rules/naming.html#booleangetmethodname -->
<rule ref="rulesets/naming.xml/BooleanGetMethodName"/>
<!-- @see http://phpmd.org/rules/unusedcode.html#unusedprivatefield -->
<rule ref="rulesets/unusedcode.xml/UnusedPrivateField"/>
<!-- @see http://phpmd.org/rules/unusedcode.html#unusedlocalvariable -->
<rule ref="rulesets/unusedcode.xml/UnusedLocalVariable"/>
<!-- @see http://phpmd.org/rules/unusedcode.html#unusedprivatemethod -->
<rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod"/>
<!-- @see http://phpmd.org/rules/unusedcode.html#unusedformalparameter -->
<rule ref="rulesets/unusedcode.xml/UnusedFormalParameter"/>
</ruleset>