-
Notifications
You must be signed in to change notification settings - Fork 13
/
phpcs.xml
41 lines (31 loc) · 1.22 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
<?xml version="1.0"?>
<ruleset name="SprykerCore">
<description>
Extends main Spryker Coding Standard.
Note: This is only a fallback, the actual sniffer tooling runs
it per module and per level.
</description>
<arg name="tab-width" value="4"/>
<arg value="nps"/>
<config name="php_version" value="80000"/>
<file>Bundles/</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/_output/*</exclude-pattern>
<rule ref="vendor/spryker/code-sniffer/Spryker/ruleset.xml"/>
<!-- Define your own sniffs here -->
<rule ref="Spryker.Internal.SprykerDisallowFunctions">
<properties>
<!-- We want to prevent 8.2+ functions to break 8.1 compatibility -->
<property name="phpVersion" value="8.1"/>
</properties>
</rule>
<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>