-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml.dist
128 lines (111 loc) · 5.85 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0"?>
<ruleset name="TH/Maybe">
<arg name="basepath" value="."/>
<arg name="colors"/>
<file>src</file>
<file>tests</file>
<exclude-pattern>tests/data/</exclude-pattern>
<rule ref="PSR12">
<exclude name="PSR12.Files.FileHeader" />
<exclude name="PSR12.Files.OpenTag" />
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration" />
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace" />
</rule>
<rule ref="SlevomatCodingStandard">
<exclude name="SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys" />
<exclude name="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion" />
<exclude name="SlevomatCodingStandard.Classes.RequireSelfReference" />
<exclude name="SlevomatCodingStandard.Classes.RequireSingleLineMethodSignature" />
<exclude name="SlevomatCodingStandard.Classes.SuperfluousErrorNaming" />
<exclude name="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode" />
<exclude name="SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment" />
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment" />
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment" />
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses" />
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison" />
<exclude name="SlevomatCodingStandard.Exceptions.DisallowNonCapturingCatch" />
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName" />
<exclude name="SlevomatCodingStandard.Functions.DisallowArrowFunction" />
<exclude name="SlevomatCodingStandard.Functions.DisallowEmptyFunction" />
<exclude name="SlevomatCodingStandard.Functions.DisallowNamedArguments" />
<exclude name="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall" />
<exclude name="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration" />
<exclude name="SlevomatCodingStandard.Functions.UnusedParameter" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants" />
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces" />
<exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators" />
<exclude name="SlevomatCodingStandard.Operators.RequireOnlyStandaloneIncrementAndDecrementOperators" />
<exclude name="SlevomatCodingStandard.PHP.DisallowReference" />
<exclude name="SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint" />
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
</rule>
<rule ref="SlevomatCodingStandard.Attributes.AttributesOrder">
<properties>
<property name="orderAlphabetically" value="true" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="declareOnFirstLine" value="true" />
<property name="spacesCountAroundEqualsSign" value="0" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces">
<properties>
<property name="linesCountAfterOpeningBrace" value="0" />
<property name="linesCountBeforeClosingBrace" value="0" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing">
<properties>
<property name="linesCountBeforeFirstUseWhenFirstInClass" value="0" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="allowFullyQualifiedGlobalClasses" value="true" />
<property name="allowFullyQualifiedGlobalConstants" value="true" />
<property name="allowFullyQualifiedGlobalFunctions" value="true" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
<properties>
<property name="groups" type="array">
<element value="uses"/>
<element value="enum cases"/>
<element value="public constants"/>
<element value="protected constants"/>
<element value="private constants"/>
<element value="public static properties"/>
<element value="protected static properties"/>
<element value="private static properties"/>
<element value="public properties"/>
<element value="protected properties"/>
<element value="private properties"/>
<element value="constructor"/>
<element value="public static methods"/>
<element value="all public methods"/>
<element value="methods"/>
<element value="magic methods"/>
<element value="destructor"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration">
<properties>
<property name="allowDocCommentAboveReturn" value="true" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit">
<properties>
<property name="ignoreTrailingIfWithOneInstruction" value="true" />
</properties>
</rule>
</ruleset>