-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
36 lines (30 loc) · 1.25 KB
/
Copy pathphpcs.xml
File metadata and controls
36 lines (30 loc) · 1.25 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
<?xml version="1.0"?>
<ruleset name="Custom_PSR12">
<description>Custom ruleset Based on PSR12</description>
<!-- Rule to be referenced (`PSR12`) -->
<rule ref="PSR12" />
<arg name="extensions" value="php" />
<arg name="colors" />
<arg value="ps" />
<!-- Directories to exclude from the check (for Laravel) -->
<exclude-pattern>/database/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/tests/Support/_generated/</exclude-pattern>
<exclude-pattern>/storage/</exclude-pattern>
<exclude-pattern>/bootstrap/</exclude-pattern>
<exclude-pattern>/public/index.php</exclude-pattern>
<!-- Allow snake_case method names in classes that end with "Test" -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<!-- Allow lines up to 130 characters -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="130" />
</properties>
</rule>
<!-- Allow use _ in name method in classes that end with "Cest" -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>*Cest.php</exclude-pattern>
</rule>
</ruleset>