forked from Roave/BetterReflection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
38 lines (34 loc) · 1.62 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset name="Roave/BetterReflection coding standard">
<arg value="p"/>
<arg value="s"/>
<arg name="colors"/>
<file>src</file>
<file>test/unit</file>
<exclude-pattern>test/unit/Assets/*</exclude-pattern>
<exclude-pattern>test/unit/Fixture/*</exclude-pattern>
<rule ref="vendor/doctrine/coding-standard/lib/Doctrine/ruleset.xml">
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<!-- Contains stream wrapper -->
<exclude-pattern>src/SourceLocator/Type/AutoloadSourceLocator.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
<properties>
<property name="enableObjectTypeHint" value="false"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint">
<exclude-pattern>src/Reflection/Adapter/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint">
<exclude-pattern>src/Reflection/Adapter/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification">
<!-- It's useless to add "@return mixed[]" to all data providers -->
<exclude-pattern>test/</exclude-pattern>
</rule>
</ruleset>