-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
28 lines (23 loc) · 996 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
<?xml version="1.0" ?>
<ruleset>
<!-- Provide installation path to the WordPress Coding Standards. -->
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
<!-- Check only files with .php extension. -->
<arg name="extensions" value="php" />
<!-- Exclude from checking package managers directiories. -->
<exclude-pattern>*/**/*-display.php</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- Disallow using a short array syntax. -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<type>warning</type>
</rule>
<!-- Extend WordPress Coding Standard ruleset. -->
<rule ref="WordPress-Extra" />
<!-- Check for usage of deprecated functions. -->
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.0" />
</properties>
</rule>
</ruleset>