-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.xml.dist
30 lines (30 loc) · 1.31 KB
/
.phpcs.xml.dist
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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
<description>The coding standard for Fire.</description>
<file>src</file>
<file>tests</file>
<arg name="colors"/>
<arg value="s"/>
<rule ref="PSR12">
<exclude name="PSR12.Operators.OperatorSpacing.NoSpaceBefore"/>
<exclude name="PSR12.Operators.OperatorSpacing.NoSpaceAfter"/>
</rule>
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>src/Menu/LevelWrapWalker.php</exclude-pattern>
<exclude-pattern>tests/stubs/Walker_Nav_Menu.php</exclude-pattern>
<exclude-pattern>tests/stubs/WP_Query.php</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<exclude-pattern>tests/stubs/Walker_Nav_Menu.php</exclude-pattern>
<exclude-pattern>tests/stubs/WP_Query.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>tests/stubs/*</exclude-pattern>
</rule>
</ruleset>