-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
35 lines (30 loc) · 1.67 KB
/
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
31
32
33
34
35
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
<description>Conversions dev PHP_CodeSniffer ruleset.</description>
<!-- Exclude paths -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Rules -->
<!--
Included via WordPress-Extra.
<rule ref="WordPress-Core"/>
-->
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra">
<!-- Prevent duplicate messages + deprecation notice from deprecated sniff. -->
<exclude name="WordPress.WP.TimezoneChange.timezone_change_date_default_timezone_set"/>
<exclude name="WordPress.WP.TimezoneChange.DeprecatedSniff"/>
<!-- Exclude rule: Arrays must be declared using long array syntax. -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<!-- Exclude rule: array items, only include a space around the index if it is a variable. -->
<exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
<!-- Exclude rule: For associative arrays, each item should start on a new line when the array contains more than one item. -->
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing"/>
<!-- Exclude rule: When doing logical comparisons, always put the variable on the right side, constants or literals on the left. -->
<exclude name="WordPress.PHP.YodaConditions"/>
<!-- Exclude rule: Braces should always be used, even when they are not required. -->
<exclude name="Generic.ControlStructures.InlineControlStructure"/>
</rule>
</ruleset>