forked from WordPress/wordpress-importer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
50 lines (40 loc) · 1.59 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
48
49
50
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPressImporterCodingStandards" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Coding Standards for WordPress Importer.</description>
<!--
#############################################################################
COMMAND LINE ARGUMENTS
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
#############################################################################
-->
<file>.</file>
<exclude-pattern>*/vendor/</exclude-pattern>
<!-- Only check PHP files. -->
<arg name="extensions" value="php"/>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="ps"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./"/>
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>
<!--
#############################################################################
USE THE WordPress AND PHPCompatibilityWP RULESETS
#############################################################################
-->
<rule ref="WordPress-Core">
<exclude name="WordPress.PHP.StrictComparisons"/>
<exclude name="WordPress.WP.I18n"/>
</rule>
<rule ref="WordPress.Files.FileName">
<exclude-pattern>*/phpunit/tests/*\.php$</exclude-pattern>
</rule>
<!-- next up:
<rule ref="WordPress-Extra">
<exclude name="WordPress.Security.EscapeOutput"/>
</rule>
-->
<!-- Supported PHP versions -->
<config name="testVersion" value="5.6-"/>
<rule ref="PHPCompatibilityWP"/>
</ruleset>