-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.phpcs.xml
More file actions
46 lines (46 loc) · 1.83 KB
/
.phpcs.xml
File metadata and controls
46 lines (46 loc) · 1.83 KB
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
41
42
43
44
45
46
<?xml version="1.0"?>
<ruleset name="StringMorpher Coding Standards">
<description>Custom coding standards for the StringMorpher project.</description>
<file>src</file>
<file>tests</file>
<arg name="colors"/>
<rule ref="PSR12"/>
<!-- Rules in alphabetical order-->
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\r\n"/>
</properties>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
<type>error</type>
</rule>
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Squiz.Commenting.FunctionComment">
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName"/>
<property name="skipIfInheritdoc" value="true"/>
<properties>
<property name="specialMethods" type="array">
<element value="__callStatic"/>
<element value="__construct"/>
<element value="__destruct"/>
<element value="__toString"/>
<element value="jsonSerialize"/>
</property>
</properties>
<exclude-pattern>tests</exclude-pattern>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration"/>
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<property name="spacingBeforeFirst" value="0"/>
<property name="spacingAfterLast" value="0"/>
<property name="spacing" value="1"/>
</properties>
</rule>
</ruleset>