-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathphpcs.xml
40 lines (38 loc) · 1.54 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="WordPress Micropub">
<description>WordPress Micropub Standards</description>
<file>./micropub.php</file>
<file>./includes/</file>
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="parallel" value="8"/><!-- Enables parallel processing when available for faster results. -->
<arg name="colors"/>
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.array_key_firstFound" /><!-- Exclude because added compat function -->
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.array_key_lastFound" /><!-- Exclude because added compat function -->
</rule>
<config name="testVersion" value="5.6-"/>
<rule ref="WordPress-Core">
<exclude name="WordPress.Security.NonceVerification.Missing" /> <!-- Exclude because the form submission is part of the API -->
</rule>
<config name="minimum_supported_wp_version" value="4.9"/>
<rule ref="WordPress.Files.FileName">
<rule ref="WordPress.WP.I18n">
<properties>
<!-- Value: replace the text domain used. -->
<property name="text_domain" type="array" value="micropub"/>
</properties>
</rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
<properties>
<property name="blank_line_check" value="true"/>
</properties>
</rule>
<properties>
<property name="strict_class_file_names" value="false" />
</properties>
</rule>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress.WP.I18n"/>
<config name="text_domain" value="micropub,default"/>
<rule ref="WordPress.WP.DeprecatedFunctions" />
</ruleset>