-
Notifications
You must be signed in to change notification settings - Fork 1
/
.phpcs.xml.dist
59 lines (46 loc) · 2.08 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
51
52
53
54
55
56
57
58
59
<?xml version="1.0"?>
<ruleset name="Coding standards for {{Plugin Starter}}">
<!--
Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage
Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
-->
<!-- What to scan: -->
<file>./plugin-starter</file>
<file>./tests</file>
<!-- What to ignore: -->
<exclude-pattern>./plugin-starter/vendor</exclude-pattern>
<exclude-pattern>./tests/coverage</exclude-pattern>
<!-- Show progresss & use colors. -->
<arg value="sp"/>
<arg name="colors"/>
<!-- Enables parallel processing when available for faster results. -->
<arg name="parallel" value="8"/>
<!-- Strip the file paths down to the relevant bit and only apply to .php files. -->
<arg name="basepath" value="./"/>
<arg name="extensions" value="php"/>
<!--
Set range of supported PHP versions.
It's recommended that you leave off the maximum version in most cases,
e.g. "5.6-" means "We support PHP 5.6 or newer".
Reference: https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions
-->
<config name="testVersion" value="5.6-"/>
<!--
Set the minimum supported WordPress version.
Reference: https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#minimum-wp-version-to-check-for-usage-of-deprecated-functions-classes-and-function-parameters
-->
<config name="minimum_supported_wp_version" value="5.8"/>
<!-- Include the StellarWP standards. -->
<rule ref="StellarWP"/>
<!--
Define the WordPress i18n text-domain.
Reference: https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#internationalization-setting-your-text-domain
-->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="stellarwp"/>
</property>
</properties>
</rule>
</ruleset>