-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
31 lines (25 loc) · 1.06 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset name="Emoji Settings">
<description>The coding standard used for Emoji Settings plugin for WordPress.</description>
<!-- Get it here: https://github.com/theseoframework/wpcs-tsf -->
<rule ref="TSF"/>
<!-- Defined at wpcs-tsf. We cannot override that here... -->
<!-- <config name="minimum_supported_wp_version" value="5.5"/> -->
<!-- <config name="testVersion" value="7.2-"/> -->
<rule ref="TSF.Performance.Opcodes">
<properties>
<!-- Can we drop these exceptions at 3.0, perhaps use keywords may then be supported? -->
<property name="userNoopChecks" type="array" value="get_setting_overrides"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="emoji-settings"/>
</properties>
</rule>
<!-- Exclude index.php files. They are inert in (our) plugins unless directly included/called. -->
<exclude-pattern>index.php</exclude-pattern>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
</ruleset>