-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.phpcs.xml
34 lines (30 loc) · 1.34 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
<?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 M3W projects</description>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>*.js$</exclude-pattern>
<!-- This is a temporary measure so the old HTML templates do not cause issues-->
<exclude-pattern>bin/templates/*</exclude-pattern>
<arg name="tab-width" value="4"/>
<rule ref="PSR2">
<exclude name="Generic.WhiteSpace.DisallowTabIndent"></exclude>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"></exclude>
<!-- The following two rules are also a temporary patch for the legacy code -->
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"></exclude>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"></exclude>
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
<property name="exact" value="true"/>
<property name="indentWhitespaceInScope" value="true"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="true"/>
</properties>
</rule>
</ruleset>