-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathphpcs.xml
48 lines (43 loc) · 2.12 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
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<ruleset name="plugin">
<config name="installed_paths" value="../../fig-r/psr2r-sniffer"/>
<arg value="nps"/>
<file>config/</file>
<file>src/</file>
<file>tests/</file>
<exclude-pattern>/tests/test_app/templates/</exclude-pattern>
<rule ref="PSR2R"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation"/>
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessDocComment"/>
<properties>
<property name="enableMixedTypeHint" value="true"/>
<property name="enableUnionTypeHint" value="false"/>
<property name="enableIntersectionTypeHint" value="false"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation"/>
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessDocComment"/>
<properties>
<property name="enableStaticTypeHint" value="false"/>
<property name="enableMixedTypeHint" value="true"/>
<property name="enableUnionTypeHint" value="false"/>
<property name="enableIntersectionTypeHint" value="false"/>
<property name="enableNeverTypeHint" value="false"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessAnnotation"/>
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessDocComment"/>
<properties>
<property name="enableNativeTypeHint" value="true"/>
<property name="enableMixedTypeHint" value="true"/>
<property name="enableUnionTypeHint" value="false"/>
<property name="enableIntersectionTypeHint" value="false"/>
</properties>
</rule>
</ruleset>