-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml.dist
47 lines (36 loc) · 1.78 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<ruleset name="Apply PSR-2 Coding Standards">
<description>Apply PSR-2 Coding Standards</description>
<rule ref="PSR2">
<exclude-pattern>./src/object-cache.php</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/drone/src/github.com/presslabs/stack-mu-plugin/vendor/*</exclude-pattern>
<exclude-pattern>/hack/*</exclude-pattern>
<exclude-pattern>/web/*</exclude-pattern>
<exclude-pattern>/wordpress/*</exclude-pattern>
<exclude-pattern>/wordpress-develop/*</exclude-pattern>
<exclude-pattern>/tests/object-cache.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>./src/Stack/ObjectCache.php</exclude-pattern>
<exclude-pattern>./src/Stack/ObjectCache/*</exclude-pattern>
<exclude-pattern>./src/Stack/MediaFilesystem/StreamWrapper.php</exclude-pattern>
</rule>
<arg name="extensions" value="php"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./src"/>
<!-- Check up to 20 files simultanously. -->
<arg name="parallel" value="20"/>
<!-- Show sniff codes in all reports -->
<arg value="ps"/>
<file>./src</file>
<file>./tests</file>
<!-- Directories and third party library exclusions -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/drone/src/github.com/presslabs/stack-mu-plugin/vendor/*</exclude-pattern>
<exclude-pattern>/hack/*</exclude-pattern>
<exclude-pattern>/web/*</exclude-pattern>
<exclude-pattern>/wordpress/*</exclude-pattern>
<exclude-pattern>/wordpress-develop/*</exclude-pattern>
<exclude-pattern>/tests/object-cache.php</exclude-pattern>
</ruleset>