-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml
More file actions
35 lines (29 loc) · 1.11 KB
/
Copy pathphpcs.xml
File metadata and controls
35 lines (29 loc) · 1.11 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
31
32
33
34
35
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Settings-API" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>A custom set of rules to check for this project</description>
<arg name="colors"/>
<arg name="tab-width" value="4" />
<!-- Only check the PHP files. -->
<arg name="extensions" value="php"/>
<!-- Check PHP version compatibility. -->
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.4-"/>
<file>./admin/</file>
<file>./config/</file>
<file>./functions/</file>
<file>./hooks/</file>
<file>./src/</file>
<file>./templates/</file>
<file>./tests/</file>
<file>./_init.php</file>
<file>./_init-admin.php</file>
<file>./bootstrap.php</file>
<file>./index.php</file>
<file>./italystrap.php</file>
<file>./uninstall.php</file>
<!-- Use PSR12 as a base.-->
<rule ref="PSR12">
</rule>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/_support/*</exclude-pattern>
</ruleset>