-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
40 lines (29 loc) · 1.01 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
39
40
<?xml version="1.0"?>
<ruleset name="My Theme">
<description>My Theme Coding Standards</description>
<!-- Check all files in this directory and the directories below it. -->
<file>.</file>
<!-- Exclude patterns. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Only check the PHP files. -->
<arg name="extensions" value="php"/>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Show progress -->
<arg value="p"/>
<!-- Use PSR-2 as a base -->
<rule ref="PSR2" />
<!--
####################################################
PHP Compatibility
https://github.com/PHPCompatibility/PHPCompatibility
####################################################
-->
<!-- Run against the PHPCompatibility ruleset -->
<rule ref="PHPCompatibility"/>
<!-- Check for cross-version support for PHP 5.6 and higher. -->
<config name="testVersion" value="5.6-"/>
</ruleset>