-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
30 lines (24 loc) · 1.14 KB
/
Copy pathphpcs.xml
File metadata and controls
30 lines (24 loc) · 1.14 KB
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WPD Project"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Coding standards for developed projects by SMFB Dinamo.</description>
<!-- Files or directories to check. -->
<file>./config</file>
<file>./public/wp-config.php</file>
<file>./public/wp-content/themes</file>
<!-- Exclude files or directories. -->
<exclude-pattern>/public/wp-content/index.php</exclude-pattern>
<exclude-pattern>/public/wp-content/themes/index.php</exclude-pattern>
<!-- Path to strip from the front of file paths inside reports (displays shorter paths). -->
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="parallel" value="8"/>
<!-- Set a minimum PHP version for PHPCompatibility. -->
<config name="testVersion" value="7.2-"/>
<!-- Use WPD Coding Standards. -->
<rule ref="WPD"/>
<!-- Added to suppress error in wp-config for overriding $table_prefix. -->
<rule ref="WordPress.WP.GlobalVariablesOverride">
<exclude-pattern>/wp-config\.php$</exclude-pattern>
</rule>
</ruleset>