Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
66 lines (56 loc) · 3.06 KB
/
Copy pathphpcs.xml
File metadata and controls
66 lines (56 loc) · 3.06 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
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<ruleset name="Perpl">
<description>
Perpl Coding Standard.
Still extends Spryker Coding Standard.
</description>
<config name="installed_paths" value="../../spryker/code-sniffer"/>
<arg value="nps"/>
<file>src/</file>
<exclude-pattern>src/*/templates/</exclude-pattern>
<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})`-->
<exclude name="Spryker.Commenting.DocBlockParamAllowDefaultValue.WrongNullable"/> <!-- Checks for null as '?' (?string) but not '|null' (string|null) in spryker/code-sniffer 0.17.30 -->
<exclude name="Spryker.Classes.ReturnTypeHint.InvalidSelf"/> <!-- Prohibits return type hint for @return $this -->
<exclude name="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"/> <!-- Deprecated but still loaded in spryker 0.17.36 -->
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat"> <!-- Replaces deprecated SlevomatCodingStandard.TypeHints.UnionTypeHintFormat -->
<properties>
<property name="withSpacesAroundOperators" value="no"/>
</properties>
</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>