-
Notifications
You must be signed in to change notification settings - Fork 19
/
.phpcs.xml.dist
39 lines (32 loc) · 1.24 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
<?xml version="1.0"?>
<ruleset name="Posts in Page">
<description>Custom ruleset for the Posts in Page plugin.</description>
<!-- What to scan -->
<file>.</file>
<!-- How to scan -->
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="colors"/> <!-- Show results with colors -->
<arg name="basepath" value="."/> <!-- Strip the file paths down to the relevant bit -->
<arg name="parallel" value="50"/> <!-- Enables parallel processing when available for faster results. -->
<arg name="extensions" value="php"/> <!-- Limit to PHP files -->
<!-- Rules: WordPress Coding Standards - see
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
<rule ref="WordPress-Extra"/><!-- Includes WordPress-Core -->
<rule ref="WordPress-Docs"/>
<rule ref="WordPress">
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited"/>
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
</properties>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="posts-in-page"/>
</property>
</properties>
</rule>
</ruleset>