-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml
35 lines (27 loc) · 1016 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="Version Assets">
<description>Version Assets Coding Standards</description>
<!-- Scan all files in directory -->
<file>.</file>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Ignore Composer dependencies -->
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>wordpress/</exclude-pattern>
<!-- Ignore Test config/bootstrap -->
<exclude-pattern>tests/*.php</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use PSR-2 as a base -->
<rule ref="PSR2"/>
<!-- Allow snake_case method names in test cases -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests/(feature|unit)</exclude-pattern>
</rule>
<!-- Don't require method visibility in test cases -->
<rule ref="Squiz.Scope.MethodScope.Missing">
<exclude-pattern>tests/(feature|unit)</exclude-pattern>
</rule>
</ruleset>