-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
47 lines (42 loc) · 1.38 KB
/
phpcs.xml.dist
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
46
47
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
name="pseudo-theme"
>
<!-- Paths -->
<file>app</file>
<file>boot</file>
<file>config</file>
<file>theme</file>
<file>tests</file>
<!-- Args -->
<arg value="p"/>
<arg value="s"/>
<arg name="colors"/>
<arg name="basepath" value="."/>
<arg name="cache" value="build/phpcs/.cache"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="9001"/>
<arg name="report" value="code"/>
<!-- Config -->
<config name="ignore_warnings_on_exit" value="true"/>
<config name="testVersion" value="8.1-"/>
<!-- Rules -->
<rule ref="PSR12"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="Suin.Classes.PSR4"/>
<!-- Disable underscore rules for "facade" classes -->
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<exclude-pattern>app/Access/_Facade</exclude-pattern>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>app/Access</exclude-pattern>
</rule>
<!-- Disable camel case method name rule for tests -->
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>tests/Suites</exclude-pattern>
<exclude-pattern>tests/Support/Bases</exclude-pattern>
<exclude-pattern>tests/Support/Partials</exclude-pattern>
</rule>
</ruleset>