-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
50 lines (40 loc) · 1.84 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<arg name="basepath" value="."/>
<arg name="cache" value="tmp/.phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<!-- Show progress -->
<arg value="p"/>
<!-- Paths to check -->
<file>module</file>
<exclude-pattern>**Spec.php</exclude-pattern>
<exclude-pattern>module/*/bundle/**</exclude-pattern>
<exclude-pattern>module/*/fixtures/**</exclude-pattern>
<!-- Include all rules from the Laminas Coding Standard -->
<rule ref="LaminasCodingStandard">
<exclude name="Generic.Formatting.MultipleStatementAlignment"/>
<exclude name="Generic.Formatting.SpaceAfterNot"/>
<exclude name="WebimpressCodingStandard.Arrays.DoubleArrow"/>
<exclude name="SlevomatCodingStandard.Commenting.EmptyComment.EmptyComment"/>
<exclude name="WebimpressCodingStandard.Formatting.Reference.UnexpectedSpace"/>
<exclude name="WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCaps"/>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="220"/>
<property name="absoluteLineLimit" value="220"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
<exclude-pattern>**Factory.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<exclude-pattern>**Factory.php</exclude-pattern>
</rule>
<rule ref="WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCapsProperty">
<exclude-pattern>**/Entity/**</exclude-pattern>
</rule>
</ruleset>