-
Notifications
You must be signed in to change notification settings - Fork 16
/
phpcs.xml
29 lines (22 loc) · 860 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="wp_basis">
<description>Rules for WordPress Basis Theme projects</description>
<!-- Check up to 8 files simultanously. -->
<arg name="parallel" value="8"/>
<!-- Only check the PHP, CSS and SCSS files. JS files are checked separately with ESLint. -->
<arg name="extensions" value="php,css,scss/css"/>
<!-- Check all files in this directory and the directories below it. -->
<file>./inc/</file>
<file>./parts/</file>
<file>./widgets/</file>
<file>./</file>
<!-- Code Reviews Rules -->
<rule ref="WordPress"/>
<!-- Verify that the text_domain is set to the desired text-domain.
Multiple valid text domains can be provided as a comma-delimited list. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="wp_basis"/>
</properties>
</rule>
</ruleset>