forked from facilioo/php-ews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpmd.xml
51 lines (45 loc) · 1.82 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
<?xml version="1.0"?>
<ruleset name="PHP EWS">
<description>
Custom Mess Detector ruleset for PHP EWS that only runs rules that are
appropriate based on this library's design to be as consistent with
Exchange Web Services API as possible.
</description>
<rule ref="rulesets/cleancode.xml"/>
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/codesize.xml">
<!-- Classes can have many pubic fields (properties) and methods. -->
<exclude name="ExcessivePublicCount"/>
<exclude name="TooManyFields"/>
<exclude name="TooManyPublicMethods"/>
</rule>
<rule ref="rulesets/controversial.xml">
<!-- Operation and element names don't follow these rules. -->
<exclude name="CamelCaseMethodName"/>
<exclude name="CamelCaseParameterName"/>
<exclude name="CamelCasePropertyName"/>
<exclude name="CamelCaseVariableName"/>
</rule>
<rule ref="rulesets/design.xml">
<!-- Type inheritance matches that defined in the schema and may violate
these. -->
<exclude name="CouplingBetweenObjects"/>
<exclude name="DepthOfInheritance"/>
<exclude name="NumberOfChildren"/>
</rule>
<rule ref="rulesets/naming.xml">
<!-- Property names match element names and may be longer. -->
<exclude name="LongVariable"/>
<!-- We need to allow some exceptions for short variables, so exclude it
here. -->
<exclude name="ShortVariable"/>
</rule>
<!-- Re-add the short variable rule but add exceptions for valid
properties. -->
<rule ref="rulesets/naming.xml/ShortVariable">
<priority>1</priority>
<properties>
<property name="exceptions" value="_,ch,Id,ID,Or,To" />
</properties>
</rule>
</ruleset>