-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
50 lines (44 loc) · 1.65 KB
/
phpcs.xml
File metadata and controls
50 lines (44 loc) · 1.65 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
<?xml version="1.0"?>
<ruleset name="FacturaScripts Plugin">
<description>Coding standard for FacturaScripts plugins based on PSR-12</description>
<!-- Files to check -->
<file>Controller</file>
<file>Model</file>
<file>Extension</file>
<file>Test</file>
<file>Init.php</file>
<!-- Exclude patterns -->
<exclude-pattern>Assets/</exclude-pattern>
<exclude-pattern>docker/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>View/</exclude-pattern>
<exclude-pattern>XMLView/</exclude-pattern>
<exclude-pattern>Test/bootstrap.php</exclude-pattern>
<exclude-pattern>Test/install-plugins.php</exclude-pattern>
<exclude-pattern>Test/e2e-smoke.php</exclude-pattern>
<!-- Include PSR-12 standard -->
<rule ref="PSR12"/>
<!-- Additional rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="sizeof" value="count"/>
<element key="delete" value="unset"/>
<element key="print" value="echo"/>
<element key="create_function" value="null"/>
</property>
</properties>
</rule>
<!-- Show progress and use colors -->
<arg value="ps"/>
<arg name="colors"/>
<!-- Parallel processing -->
<arg name="parallel" value="75"/>
</ruleset>