-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
24 lines (17 loc) · 809 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
<?xml version="1.0"?>
<ruleset name="WordPress">
<description>Sniffs for the coding standards of the WordPress. Based on WordPress-Extra.</description>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg name="report" value="full"/>
<rule ref="WordPress-Extra">
<exclude name="WordPress.PHP.YodaConditions"/>
<exclude name="WordPress.WP.GlobalVariablesOverride"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
</rule>
</ruleset>