|
86 | 86 | <!-- Require exactly one blank line after trait use -->
|
87 | 87 | <rule ref="PSR12.Traits.UseDeclaration"/>
|
88 | 88 |
|
| 89 | + <!-- Forbid whitespace between array access operator and the variable or between array access operators. --> |
| 90 | + <rule ref="SlevomatCodingStandard.Arrays.ArrayAccess"/> |
| 91 | + <!-- Sort attributes alphabetically --> |
| 92 | + <rule ref="SlevomatCodingStandard.Attributes.AttributesOrder"> |
| 93 | + <properties> |
| 94 | + <property name="orderAlphabetically" value="true"/> |
| 95 | + </properties> |
| 96 | + </rule> |
| 97 | + <!-- Disallow multiple attributes inside one #[] --> |
| 98 | + <rule ref="SlevomatCodingStandard.Attributes.DisallowAttributesJoining"/> |
| 99 | + <!-- Require only one attribute per line --> |
| 100 | + <rule ref="SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine"/> |
| 101 | + |
89 | 102 | <!-- Force Enum Spacing-->
|
90 | 103 | <rule ref="SlevomatCodingStandard.Classes.BackedEnumTypeSpacing"/>
|
91 | 104 | <!-- Require presence of constant visibility -->
|
|
101 | 114 | <property name="linesCountBeforeClosingBrace" value="0"/>
|
102 | 115 | </properties>
|
103 | 116 | </rule>
|
| 117 | + <!-- Forbid empty lines around Enum cases --> |
| 118 | + <rule ref="SlevomatCodingStandard.Classes.EnumCaseSpacing"> |
| 119 | + <properties> |
| 120 | + <property name="minLinesCountBeforeWithComment" value="0"/> |
| 121 | + <property name="maxLinesCountBeforeWithComment" value="0"/> |
| 122 | + <property name="minLinesCountBeforeWithoutComment" value="0"/> |
| 123 | + <property name="maxLinesCountBeforeWithoutComment" value="0"/> |
| 124 | + </properties> |
| 125 | + </rule> |
104 | 126 | <!-- Forbid properties to be public -->
|
105 | 127 | <rule ref="SlevomatCodingStandard.Classes.ForbiddenPublicProperty">
|
106 | 128 | <properties>
|
|
144 | 166 | <property name="ignoreMultiLine" value="true"/>
|
145 | 167 | </properties>
|
146 | 168 | </rule>
|
| 169 | + <!-- Enforce consistent spacing of named arguments --> |
| 170 | + <rule ref="SlevomatCodingStandard.Functions.NamedArgumentSpacing"/> |
147 | 171 | <!-- Require static closures for microoptimization -->
|
148 | 172 | <rule ref="SlevomatCodingStandard.Functions.StaticClosure"/>
|
149 | 173 | <!-- Forbid unused function parameters -->
|
|
0 commit comments