Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
41 lines (34 loc) · 1.71 KB
/
Copy pathphpcs.xml
File metadata and controls
41 lines (34 loc) · 1.71 KB
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
<?xml version="1.0"?>
<ruleset name="DocTool">
<description>
Spryker Coding Standard for Project.
Extends main Spryker Coding Standard.
All sniffs in ./Sniffs will be auto loaded
</description>
<rule ref="vendor/spryker/code-sniffer/SprykerStrict/ruleset.xml"/>
<file>src/</file>
<file>tests/</file>
<exclude-pattern>/tests/Acceptance/_data/*</exclude-pattern>
<rule ref="vendor/spryker/code-sniffer/SprykerStrict/ruleset.xml">
<!-- excluded on purpose: SprykerStrict pulls in the full Spryker/ruleset.xml,
which requires docblocks (DocBlock/DocBlockConst/InlineDocBlock/DocBlockReturnVoid/DocBlockParam),
directly contradicting SprykerStrict.TypeHints.*.UselessAnnotation, which forbids
them. Without this exclude, phpcbf oscillates forever on typed methods/properties.
TODO: revisit and clean up doc types properly instead of excluding. -->
<exclude name="Spryker.Commenting.DocBlock"/>
<exclude name="Spryker.Commenting.InlineDocBlock"/>
<exclude name="Spryker.Commenting.DocBlockReturnVoid"/>
<exclude name="Spryker.Commenting.DocBlockParam"/>
<exclude name="SprykerStrict.TypeHints.ParameterTypeHint.UselessAnnotation"/>
<exclude name="SprykerStrict.TypeHints.PropertyTypeHint.UselessAnnotation"/>
<exclude name="SprykerStrict.TypeHints.ReturnTypeHint.UselessAnnotation"/>
</rule>
<arg name="extensions" value="php" />
<arg name="colors"/>
<arg value="sp"/>
<rule ref="Spryker.PHP.DeclareStrictTypesAfterFileDoc">
<properties>
<property name="strictTypesMandatory" value="true"/>
</properties>
</rule>
</ruleset>