-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
64 lines (52 loc) · 2.6 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0"?>
<ruleset name="SprykerProject">
<description>
Spryker Coding Standard for Project.
Extends main Spryker Coding Standard.
All sniffs in ./Sniffs will be auto loaded
</description>
<config name="php_version" value="80000"/>
<file>src/</file>
<file>config/</file>
<file>tests/</file>
<exclude-pattern>*/src/Transfer/*</exclude-pattern>
<exclude-pattern>*/tests/_support/_generated/*</exclude-pattern>
<exclude-pattern>*/tests/_helpers/*</exclude-pattern>
<exclude-pattern>*/tests/_output/*</exclude-pattern>
<exclude-pattern>*/tests/_data/*</exclude-pattern>
<exclude-pattern>*/tests/_support/Fixtures/*</exclude-pattern>
<rule ref="vendor/spryker/code-sniffer/Spryker/ruleset.xml">
<exclude name="Spryker.Commenting.DocBlockReturnVoid.ReturnVoidMissing"/>
<exclude name="Spryker.Commenting.DocBlock.DocBlockMissing"/>
<exclude name="Spryker.Commenting.DocBlockReturnVoid.ReturnMissing"/>
<exclude name="Spryker.Commenting.DocBlock.ReturnVoidMissing"/>
<exclude name="Spryker.Commenting.DocBlockParam.SignatureMismatch"/>
<exclude name="Spryker.Commenting.DocBlockParamAllowDefaultValue.Typehint"/>
<exclude name="Spryker.Commenting.DocBlock.ConstructDesctructMissingDocBlock"/>
</rule>
<rule ref="vendor/spryker/code-sniffer/SprykerStrict/ruleset.xml">
<exclude name="SprykerStrict.TypeHints.ParameterTypeHint"/>
<exclude name="SprykerStrict.TypeHints.PropertyTypeHint"/>
</rule>
<rule ref="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion">
<exclude name="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion.DisallowedConstructorPropertyPromotion"/>
</rule>
<!-- Define your own sniffs here -->
<rule ref="Spryker.Internal.SprykerDisallowFunctions">
<properties>
<!-- We want to prevent 8.1+ functions to break 8.0 compatibility -->
<property name="phpVersion" value="8.0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowNullSafeObjectOperator">
<severity>0</severity>
</rule>
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration">
<severity>0</severity>
</rule>
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse">
<severity>0</severity>
</rule>
</ruleset>