-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpcs.xml
More file actions
23 lines (19 loc) · 759 Bytes
/
phpcs.xml
File metadata and controls
23 lines (19 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<ruleset name="Data-Module">
<rule ref="Newfold"/>
<config name="testVersion" value="7.4-"/>
<config name="minimum_supported_wp_version" value="6.0"/>
<arg name="extensions" value="php"/>
<file>includes</file>
<file>upgrades</file>
<file>wp-module-data-plugin.php</file>
<!-- Enforce fewer rules on tests -->
<!-- json_encode() is discouraged. Use wp_json_encode() instead. -->
<rule ref="WordPress.WP.AlternativeFunctions.json_encode_json_encode">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<!-- We don't need comments on every test. -->
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>