|
4 | 4 | xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
|
5 | 5 | name="ShipMonk Generic Coding Standard"
|
6 | 6 | >
|
7 |
| - <config name="php_version" value="70400"/> |
| 7 | + <config name="php_version" value="80100"/> |
8 | 8 | <arg name="basepath" value="."/>
|
9 | 9 | <arg name="extensions" value="php"/>
|
10 | 10 | <arg name="parallel" value="80"/>
|
|
244 | 244 | </rule>
|
245 | 245 |
|
246 | 246 | <rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
|
247 |
| - <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"> |
248 |
| - <exclude name="SlevomatCodingStandard.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall"/> <!-- after bumping to PHP8 --> |
249 |
| - </rule> |
| 247 | + <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> |
250 | 248 | <rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility" />
|
251 | 249 | <rule ref="SlevomatCodingStandard.Classes.ClassStructure">
|
252 | 250 | <properties>
|
|
265 | 263 | <rule ref="SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants" />
|
266 | 264 | <rule ref="SlevomatCodingStandard.Classes.DisallowMultiConstantDefinition" />
|
267 | 265 | <rule ref="SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition" />
|
| 266 | + <rule ref="SlevomatCodingStandard.Classes.DisallowStringExpressionPropertyFetch"/> |
268 | 267 | <rule ref="SlevomatCodingStandard.Classes.MethodSpacing" />
|
| 268 | + <rule ref="SlevomatCodingStandard.Classes.EnumCaseSpacing"> |
| 269 | + <properties> |
| 270 | + <property name="minLinesCountBeforeWithComment" value="0"/> |
| 271 | + <property name="maxLinesCountBeforeWithComment" value="1"/> |
| 272 | + <property name="minLinesCountBeforeWithoutComment" value="0"/> |
| 273 | + <property name="maxLinesCountBeforeWithoutComment" value="1"/> |
| 274 | + </properties> |
| 275 | + </rule> |
269 | 276 | <rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces"/>
|
| 277 | + <rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/> |
| 278 | + <rule ref="SlevomatCodingStandard.Classes.RequireSelfReference"/> |
270 | 279 | <rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration" />
|
271 | 280 | <rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing" />
|
272 | 281 | <rule ref="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion" />
|
|
280 | 289 | </rule>
|
281 | 290 | <rule ref="SlevomatCodingStandard.Commenting.EmptyComment"/>
|
282 | 291 | <rule ref="SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment"/>
|
283 |
| - <rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/> |
| 292 | + <rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"> |
| 293 | + <properties> |
| 294 | + <property name="allowAboveNonAssignment" value="true"/> |
| 295 | + </properties> |
| 296 | + </rule> |
284 | 297 | <rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>
|
285 | 298 | <rule ref="SlevomatCodingStandard.Commenting.ForbiddenComments">
|
286 | 299 | <properties>
|
|
300 | 313 | <rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/>
|
301 | 314 | <rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch"/>
|
302 | 315 | <rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"/>
|
303 |
| - <rule ref="SlevomatCodingStandard.Functions.DisallowArrowFunction"/> |
| 316 | + <rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"> |
| 317 | + <properties> |
| 318 | + <property name="allowMultiLine" value="true" /> |
| 319 | + </properties> |
| 320 | + </rule> |
| 321 | + <rule ref="SlevomatCodingStandard.Functions.NamedArgumentSpacing"/> |
| 322 | + <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse"> |
| 323 | + <properties> |
| 324 | + <property name="onlySingleLine" value="true"/> |
| 325 | + </properties> |
| 326 | + </rule> |
| 327 | + <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration"> |
| 328 | + <properties> |
| 329 | + <property name="onlySingleLine" value="true"/> |
| 330 | + </properties> |
| 331 | + </rule> |
| 332 | + <rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"> |
| 333 | + <properties> |
| 334 | + <property name="onlySingleLine" value="true"/> |
| 335 | + </properties> |
| 336 | + </rule> |
| 337 | + <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/> |
| 338 | + <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/> |
304 | 339 | <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>
|
305 | 340 | <rule ref="SlevomatCodingStandard.Functions.StaticClosure"/>
|
306 | 341 | <rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue"/>
|
307 | 342 | <rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/>
|
308 |
| - <rule ref="SlevomatCodingStandard.Functions.DisallowArrowFunction"/> |
309 | 343 | <rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
|
310 | 344 | <rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
|
311 | 345 | <properties>
|
|
392 | 426 | <rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
|
393 | 427 | <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>
|
394 | 428 | <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/>
|
| 429 | + <rule ref="SlevomatCodingStandard.Variables.DisallowVariableVariable"/> |
395 | 430 | <rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/>
|
396 | 431 | <rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
|
397 | 432 | <properties>
|
|
0 commit comments