-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
40 lines (32 loc) · 1.6 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
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<ruleset name="Pro Mime Types">
<description>The coding standard used for Pro Mime Types 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.3"/> -->
<!-- <config name="testVersion" value="7.4-"/> -->
<rule ref="TSF.Performance.Opcodes">
<properties>
<property name="userNoopChecks" type="array" value="is_network_mode,get_db_version,get_allowed_mime_types_regexes,get_allowed_mime_types_settings,_register_or_upgrade_settings,_define_supported_mime_types,_release_upgrade_lock,_set_upgrade_lock,_current_user_can_manage_settings,_bind_admin_hook,_register_or_migrate_settings,_upgrade_settings,_update_extension_regexes_to_mime_type_options"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="pro-mime-types,default"/>
</properties>
</rule>
<!-- <rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
<properties>
<property name="validUndefinedVariableNames" type="string" value="this _secret"/>
</properties>
</rule> -->
<!-- Exclude minified scripts. -->
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.min.css</exclude-pattern>
<!-- 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>