-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
33 lines (27 loc) · 940 Bytes
/
phpcs.xml.dist
File metadata and controls
33 lines (27 loc) · 940 Bytes
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
<?xml version="1.0"?>
<ruleset name="Zero Spam for WordPress">
<description>Custom ruleset for Zero Spam for WordPress.</description>
<!-- WordPress coding standards (Core + Extra + Docs) -->
<rule ref="WordPress" />
<!-- Scan everything in the current directory -->
<file>.</file>
<!-- Exclude standard paths -->
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/tests/</exclude-pattern>
<!-- Pass arguments -->
<arg value="sp"/> <!-- Show progress and sniff names -->
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="basepath" value="."/>
<!-- Set text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="zero-spam"/>
</property>
</properties>
</rule>
<!-- Set PHP version for compatibility checks -->
<config name="testVersion" value="8.2-"/>
</ruleset>