-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpcs.xml.dist
94 lines (79 loc) · 3.63 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Boost.Space - PSR rules">
<!-- Check folders -->
<file>./app</file>
<file>./bin</file>
<file>./tests</file>
<!-- Include the whole PSR-2 and PSR-12 standard -->
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength" />
</rule>
<!-- Init sniff installed paths -->
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<rule ref="PSR2.Methods.FunctionCallSignature"/> <!-- check parentheses when calling function - turned off by PSR12 -->
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment"/>
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment"/>
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
<properties>
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing">
<properties>
<property name="linesCountBeforeFirstContent" value="0" />
<property name="linesCountBetweenDescriptionAndAnnotations" value="1" />
<property name="linesCountBetweenDifferentAnnotationsTypes" value="0" />
<property name="linesCountBetweenAnnotationsGroups" value="1" />
<property name="linesCountAfterLastContent" value="0" />
<property name="annotationsGroups" type="array">
<element value="
@OA\,
"/>
<element value="
@var,
@param,
@return,
"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations">
<properties>
<property name="forbiddenAnnotations" type="array">
<element value="@author" />
<element value="@created" />
<element value="@version" />
<element value="@package" />
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
<properties>
<property name="groups" type="array">
<element value="uses"/>
<element value="enum cases"/>
<!-- Public constants are first but you don't care about the order of protected or private constants -->
<element value="public constants"/>
<element value="constants"/>
<element value="static properties"/>
<!-- You don't care about the order among the properties. The same can be done with "properties" shortcut -->
<element value="public properties, protected properties, private properties"/>
<element value="abstract methods"/>
<!-- Constructor is first, then all static methods, then all other methods -->
<element value="constructor"/>
<element value="static methods"/>
<element value="methods"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing"/>
<rule ref="SlevomatCodingStandard.Attributes.DisallowAttributesJoining"/>
<rule ref="SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment"/>
<!-- Not yet, but hopefully soon:
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="spacesCountAroundEqualsSign" value="0" />
</properties>
</rule>//-->
</ruleset>