forked from generoi/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
38 lines (31 loc) · 1.26 KB
/
phpcs.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="Roots">
<description>Roots Coding Standards</description>
<!-- Scan only mu-plugins, themes and files in config/ directory -->
<!-- If a third party mu-plugin is required, exclude it with exclude-pattern below -->
<file>RoboFile.php</file>
<file>deploy.php</file>
<file>config/</file>
<file>web/app/mu-plugins/</file>
<file>web/app/themes/</file>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Ignore WordPress and dependencies -->
<exclude-pattern>web/wp</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>web/app/mu-plugins/*/*</exclude-pattern>
<exclude-pattern>web/app/mu-plugins/wp-cli-login-server.php</exclude-pattern>
<!-- Ignore theme build files -->
<exclude-pattern>web/app/themes/*/public</exclude-pattern>
<exclude-pattern>web/app/themes/*/storage</exclude-pattern>
<exclude-pattern>web/app/themes/*/bootstrap/cache</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use PSR-2 as a base -->
<rule ref="PSR12">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
</rule>
</ruleset>