-
Notifications
You must be signed in to change notification settings - Fork 10
/
phpcs.xml.dist
36 lines (29 loc) · 1.05 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
<?xml version="1.0"?>
<ruleset name="Locomotive WordPress Project Skeleton">
<!-- Scan only project skeleton files -->
<file>config/</file>
<file>www/mu-plugins/</file>
<file>www/index.php</file>
<file>www/wp-config.php</file>
<exclude-pattern>www/mu-plugins/*/</exclude-pattern>
<!-- Ignoring warnings when generating the exit code. -->
<config name="ignore_warnings_on_exit" value="1" />
<!-- Check for cross-version support for PHP 7.4 and higher. -->
<config name="testVersion" value="7.4-" />
<!-- Use Jazz as a base -->
<rule ref="Jazz" />
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="6.1" />
</properties>
</rule>
<rule ref="HM.Files">
<exclude-pattern>www/mu-plugins/</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>config/*</exclude-pattern>
<exclude-pattern>www/mu-plugins/</exclude-pattern>
<exclude-pattern>www/index.php</exclude-pattern>
<exclude-pattern>www/wp-config.php</exclude-pattern>
</rule>
</ruleset>