forked from perplorm/perpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
56 lines (47 loc) · 2.29 KB
/
phpcs.xml
File metadata and controls
56 lines (47 loc) · 2.29 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0"?>
<ruleset name="Propel">
<description>
Propel Coding Standard.
Extends Spryker Coding Standard.
</description>
<config name="installed_paths" value="../../spryker/code-sniffer"/>
<arg value="nps"/>
<file>src/</file>
<rule ref="SprykerStrict">
<exclude name="SprykerStrict.TypeHints.ParameterTypeHint"/>
<exclude name="SprykerStrict.TypeHints.PropertyTypeHint"/>
<exclude name="SprykerStrict.TypeHints.ReturnTypeHint"/>
<exclude name="Spryker.Internal.SprykerBridge"/>
<exclude name="Spryker.Internal.SprykerFacade"/>
<exclude name="Spryker.Internal.SprykerNoDemoshop"/>
<exclude name="Spryker.Internal.SprykerPreferStaticOverSelf"/>
<exclude name="Spryker.Commenting.DocBlockApiAnnotation"/> <!-- Another Spryker internal function. -->
<exclude name="Spryker.Commenting.DocBlockReturnSelf.InvalidChainable"/> <!-- methods with "@return $this" must end with "return $this", but cannot return $this through another method -->
<exclude name="Spryker.Commenting.DocBlockParamAllowDefaultValue.Typehint"/> <!-- fails to recognize array shapes (like `array{int, string})`-->
</rule>
<rule ref="Spryker.Internal.SprykerDisallowFunctions">
<properties>
<!-- running this rule without phpVersion doubles runtime (in spryker/code-sniffer 0.17.30) -->
<property name="phpVersion" value="8.1"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" >
<properties>
<property name="allowFallbackGlobalFunctions" value="false"/>
<property name="allowFallbackGlobalConstants" value="false"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations">
<properties>
<property name="forbiddenAnnotations" type="array">
<element value="@author"/>
<element value="@created"/>
<element value="@copyright"/>
<element value="@license"/>
<element value="@package"/>
<element value="@version"/>
</property>
</properties>
</rule>
</ruleset>