-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
24 lines (19 loc) · 790 Bytes
/
phpcs.xml
File metadata and controls
24 lines (19 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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" />
<!-- Color the result output -->
<arg name="colors" />
<!-- Display progress (-p) -->
<!-- Display violation rules in error information (-s) -->
<arg value="ps" />
<!-- Directories to exclude from the check (for Laravel) -->
<exclude-pattern>/database/</exclude-pattern>
<exclude-pattern>/vendor/</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>
</ruleset>