-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml.dist
33 lines (25 loc) · 1.13 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="Apply PSR-2 Coding Standards">
<description>Apply PSR-2 Coding Standards</description>
<rule ref="PSR2">
<exclude-pattern>./wordpress/wp-oem/object-cache.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>./wordpress/wp-oem/Presslabs/ObjectCache.php</exclude-pattern>
<exclude-pattern>./wordpress/wp-oem/Presslabs/ObjectCache/*</exclude-pattern>
</rule>
<arg name="extensions" value="php"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./wordpress/wp-oem"/>
<!-- Check up to 20 files simultanously. -->
<arg name="parallel" value="20"/>
<!-- Show sniff codes in all reports -->
<arg value="ps"/>
<file>./wordpress/wp-oem</file>
<file>./tests</file>
<!-- Directories and third party library exclusions -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/hack/*</exclude-pattern>
<exclude-pattern>/tests/object-cache.php</exclude-pattern>
</ruleset>