-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
50 lines (47 loc) · 1.79 KB
/
phpcs.xml
File metadata and controls
50 lines (47 loc) · 1.79 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
47
48
49
50
<?xml version="1.0"?>
<ruleset name="PivotPHP PSR-12 Extended">
<description>Express PHP Framework PSR-12 Extended Coding Standard</description>
<file>src</file>
<file>tests</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/cache/*</exclude-pattern>
<exclude-pattern>*/storage/*</exclude-pattern>
<rule ref="PSR12"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="180"/>
</properties>
</rule>
<!-- Exclude test helper classes from one-class-per-file rule -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration"/>
<rule ref="Generic.Arrays.ArrayIndent"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule>
<!-- Method declaration formatting -->
<rule ref="PEAR.Functions.FunctionDeclaration"/>
<rule ref="PSR2.Methods.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule>
<!-- Function arguments formatting -->
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration">
<properties>
<property name="indent" value="4"/>
</properties>
</rule>
</ruleset>