-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
37 lines (29 loc) · 1.16 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
<?xml version="1.0"?>
<ruleset name="Justice_Digital">
<description>Justice Digital Coding Standards</description>
<!-- Scan all files in directory -->
<file>public/</file>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Ignore WordPress and Composer dependencies -->
<exclude-pattern>public/wp</exclude-pattern>
<exclude-pattern>public/app/mu-plugins</exclude-pattern>
<exclude-pattern>public/app/plugins</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use PSR-1 as a base -->
<rule ref="PSR1"/>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>public/app/themes/clarity/inc/*</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>public/app/themes/clarity/inc/*</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName">
<exclude-pattern>public/app/themes/clarity/inc/*</exclude-pattern>
</rule>
<!-- Increase memory limit -->
<ini name="memory_limit" value="1024M"/>
</ruleset>