-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
45 lines (34 loc) · 1.4 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
38
39
40
41
42
43
44
45
<?xml version="1.0"?>
<ruleset name="Project">
<description>Project Coding Standards</description>
<!-- Scan all files in directory -->
<file>.</file>
<exclude-pattern>/vendor</exclude-pattern>
<exclude-pattern>/autoload.php</exclude-pattern>
<exclude-pattern>.github</exclude-pattern>
<exclude-pattern>.wordpress.org</exclude-pattern>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Show progress. -->
<arg value="p"/>
<!-- Set ini. -->
<ini name="memory_limit" value="512M"/>
<ini name="max_execution_time" value="-1"/>
<!-- Use WordPress Extra as a base -->
<rule ref="WordPress-Extra">
<!-- Exclude as we use a custom autoloader. -->
<exclude name="WordPress.Files.FileName"/>
<!-- Exclude as it conflict with @var declaration. -->
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<!-- Exclude as we use custom naming for our class. -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
</rule>
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.0-"/>
</ruleset>