-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathphpcs.xml
30 lines (21 loc) · 817 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
29
30
<?xml version="1.0"?>
<ruleset name="Contact Form 7 - Repeatable Fields">
<description>CF7 Repeatable Fields rules for PHP_CodeSniffer</description>
<file>.</file>
<arg name="extensions" value="php" />
<exclude-pattern>index.php</exclude-pattern> <!-- As we use it just to avoid directory listing. -->
<arg name="extensions" value="php"/>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<rule ref="WordPress"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="cf7-repeatable-fields" />
</properties>
</rule>
<rule ref="WordPress-Extra">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
</rule>
<rule ref="PHPCompatibilityWP" />
<config name="testVersion" value="7.2-"/>
</ruleset>