This repository was archived by the owner on May 2, 2025. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
69 lines (63 loc) · 2.57 KB
/
Copy pathphpcs.xml
File metadata and controls
69 lines (63 loc) · 2.57 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
67
68
69
<?xml version="1.0"?>
<ruleset name="Laminas Coding Standard">
<description>Laminas Coding Standard</description>
<!-- display progress -->
<arg value="p"/>
<arg name="colors"/>
<arg name="extensions" value="php,dist,phtml"/>
<!-- inherit rules from: -->
<rule ref="PSR12"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Formatting.SpaceAfterNot"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>public/index.php</exclude-pattern>
</rule>
<!-- view files adjustments -->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="PSR12.Files.FileHeader">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<!-- language file exclusion-->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>/language/*.php</exclude-pattern>
</rule>
<rule ref="PSR12.Files.FileHeader">
<exclude-pattern>/language/*.php</exclude-pattern>
</rule>
<!-- exclude the config files written by the system -->
<rule ref="WebimpressCodingStandard.Arrays.DoubleArrow">
<exclude-pattern>/config/autoload/appsettings.php</exclude-pattern>
<exclude-pattern>/config/autoload/appsettings.*.php</exclude-pattern>
<exclude-pattern>/config/roles.php</exclude-pattern>
<exclude-pattern>/config/themes.php</exclude-pattern>
</rule>
<rule ref="PSR12.Files.FileHeader">
<exclude-pattern>/config/autoload/appsettings.php</exclude-pattern>
<exclude-pattern>/config/autoload/appsettings.*.php</exclude-pattern>
<exclude-pattern>/config/roles.php</exclude-pattern>
<exclude-pattern>/config/themes.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<exclude-pattern>/config/autoload/appsettings.php</exclude-pattern>
<exclude-pattern>/config/autoload/appsettings.*.php</exclude-pattern>
<exclude-pattern>/config/roles.php</exclude-pattern>
<exclude-pattern>/config/themes.php</exclude-pattern>
</rule>
<!-- Paths to check -->
<file>config</file>
<file>module</file>
<file>public/index.php</file>
<rule ref="LaminasCodingStandard"/>
</ruleset>