-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
41 lines (34 loc) · 1.38 KB
/
phpcs.xml.dist
File metadata and controls
41 lines (34 loc) · 1.38 KB
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
41
<?xml version="1.0"?>
<ruleset name="Swift CSV">
<description>WordPress plugin coding standards</description>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/phpcsstandards/phpcsextra,vendor/phpcsstandards/phpcsutils"/>
<!-- Exclude patterns -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- Output options -->
<arg value="ps"/>
<arg name="basepath" value="./"/>
<arg name="extensions" value="php"/>
<!-- WordPress coding standards (includes WordPress-Core, WordPress-Extra, WordPress-Docs) -->
<rule ref="WordPress">
<!-- Allow short array syntax [] instead of array() -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Enforce short array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element key="0" value="swift-csv"/>
</property>
</properties>
</rule>
<!-- Minimum supported versions -->
<config name="minimum_wp_version" value="6.6"/>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_wp_version" value="6.6"/>
</properties>
</rule>
</ruleset>