-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathphpcs.xml
executable file
·40 lines (35 loc) · 1.33 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
36
37
38
39
40
<?xml version="1.0"?>
<ruleset name="Winter CMS Plugins">
<description>The coding standard for Winter CMS Plugins.</description>
<rule ref="PSR2">
<!--
Exceptions to the PSR-2 guidelines as per our Developer Guide:
https://wintercms.com/help/guidelines/developer#psr-exceptions
-->
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace" />
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<!--
Tests do not need a namespace defined
-->
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<arg name="tab-width" value="4"/>
<arg name="extensions" value="php" />
<arg name="colors" />
<arg value="nq" />
<file>.</file>
<exclude-pattern>*/assets/*</exclude-pattern>
</ruleset>