-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
phpmd.xml
38 lines (33 loc) · 1.58 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
<?xml version="1.0"?>
<ruleset name="Custom PHPMD ruleset."
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">
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/web/core/*</exclude-pattern>
<exclude-pattern>*/web/libraries/*</exclude-pattern>
<exclude-pattern>*/web/profiles/contrib/*</exclude-pattern>
<exclude-pattern>*/web/modules/contrib/*</exclude-pattern>
<exclude-pattern>*/web/themes/contrib/*</exclude-pattern>
<exclude-pattern>*/web/sites/*</exclude-pattern>
<exclude-pattern>*/scripts/*</exclude-pattern>
<exclude-pattern>*/tests/*Test.php</exclude-pattern>
<exclude-pattern>*/web/modules/custom/*/*.deploy.php</exclude-pattern>
<exclude-pattern>*/web/modules/custom/*/*.post_update.php</exclude-pattern>
<exclude-pattern>*/web/modules/custom/*/*.install</exclude-pattern>
<!-- #;< VORTEX_DEV -->
<exclude-pattern>*/.vortex/*</exclude-pattern>
<!-- #;> VORTEX_DEV -->
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/codesize.xml"/>
<rule ref="rulesets/cleancode.xml">
<exclude name="MissingImport" />
</rule>
<rule ref="rulesets/cleancode.xml/MissingImport">
<properties>
<property name="ignore-global" value="true"/>
</properties>
</rule>
</ruleset>