forked from Roave/BetterReflection
-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpcs.xml.dist
40 lines (37 loc) · 1.62 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
<?xml version="1.0"?>
<ruleset name="Roave/BetterReflection coding standard">
<config name="php_version" value="70400"/>
<arg value="p"/>
<arg value="s"/>
<arg name="colors"/>
<arg name="cache" value=".phpcs-cache"/>
<file>src</file>
<file>test/benchmark</file>
<file>test/unit</file>
<exclude-pattern>test/unit/Assets/*</exclude-pattern>
<exclude-pattern>test/unit/Fixture/*</exclude-pattern>
<rule ref="Doctrine">
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="Squiz.Commenting.FunctionComment.InvalidNoReturn"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
</rule>
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration">
<properties>
<property name="allowMultiLine" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.PHP.RequireExplicitAssertion">
<properties>
<property name="enableIntegerRanges" value="true"/>
<property name="enableAdvancedStringTypes" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingParameterTypeHint">
<exclude-pattern>src/Reflection/Adapter/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingAnyTypeHint">
<exclude-pattern>src/Reflection/Adapter/*</exclude-pattern>
</rule>
</ruleset>