|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <ruleset name="PHPStan"> |
3 | | - <rule ref="vendor/consistence/coding-standard/Consistence/ruleset.xml"> |
| 3 | + <rule ref="build-cs/vendor/consistence/coding-standard/Consistence/ruleset.xml"> |
4 | 4 | <exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.InvalidFormat"/> |
5 | 5 | <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/> |
6 | 6 | <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/> |
|
19 | 19 | <property name="newlinesCountBetweenOpenTagAndDeclare" value="0"/> |
20 | 20 | </properties> |
21 | 21 | </rule> |
22 | | - <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration"> |
| 22 | + <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"> |
23 | 23 | <properties> |
24 | | - <property name="usefulAnnotations" type="array" value=" |
25 | | - @dataProvider, |
26 | | - @requires |
27 | | - "/> |
28 | 24 | <property name="enableObjectTypeHint" value="false"/> |
29 | 25 | </properties> |
30 | | - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/> |
31 | | - <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/> |
| 26 | + <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/> |
| 27 | + </rule> |
| 28 | + <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"> |
| 29 | + <properties> |
| 30 | + <property name="enableNativeTypeHint" value="false"/> |
| 31 | + </properties> |
| 32 | + <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/> |
| 33 | + </rule> |
| 34 | + <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint"> |
| 35 | + <properties> |
| 36 | + <property name="enableObjectTypeHint" value="false"/> |
| 37 | + </properties> |
| 38 | + <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/> |
32 | 39 | </rule> |
33 | 40 | <rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure.UnusedInheritedVariable"> |
34 | 41 | <exclude-pattern>src/Command/CommandHelper.php</exclude-pattern> |
|
37 | 44 | <exclude-pattern>tests</exclude-pattern> |
38 | 45 | </rule> |
39 | 46 | <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/> |
40 | | - <rule ref="SlevomatCodingStandard.ControlStructures.DisallowEqualOperators"/> |
41 | 47 | <rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/> |
42 | | - <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/> |
| 48 | + <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"> |
| 49 | + <exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit.UselessElseIf"/> |
| 50 | + </rule> |
43 | 51 | <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/> |
44 | 52 | <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/> |
45 | 53 | <rule ref="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator"/> |
|
50 | 58 | </rule> |
51 | 59 | <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> |
52 | 60 | <rule ref="SlevomatCodingStandard.Functions.StaticClosure"/> |
| 61 | + <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/> |
53 | 62 | <rule ref="SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator"/> |
54 | 63 | <rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/> |
55 | 64 | <rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/> |
|
0 commit comments