forked from TGMPA/TGM-Plugin-Activation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
45 lines (36 loc) · 1.39 KB
/
phpcs.xml.dist
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
41
42
43
44
45
<?xml version="1.0"?>
<ruleset name="TGM Plugin Activation">
<description>The code standard for TGMPA is WordPress.</description>
<file>class-tgm-plugin-activation.php</file>
<file>example.php</file>
<arg name="report" value="full"/>
<arg value="sp"/>
<!-- ##### Sniffs for PHP cross-version compatibility ##### -->
<config name="testVersion" value="5.2-99.0"/>
<rule ref="PHPCompatibility"/>
<!-- ##### Code style ##### -->
<rule ref="WordPress">
<exclude name="WordPress.VIP"/>
<!-- This is a conscious choice & known issue and will not be fixed until v 3.0 (if ever). -->
<exclude name="Generic.Files.OneClassPerFile"/>
</rule>
<!-- The value of the below config variable should be in-line with the
"requires at least" version in the readme. -->
<config name="minimum_supported_wp_version" value="3.7"/>
<rule ref="WordPress.WP.I18n">
<properties>
<!-- TGMPA itself uses `tgmpa`, the example file uses `theme-slug`. -->
<property name="text_domain" type="array" value="tgmpa,theme-slug"/>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<!--
* Classes are prefixed with `TGM`.
* Everything else in the global namespace with `tgmpa`.
* The example file use the example prefix `my_theme`.
-->
<property name="prefixes" type="array" value="tgmpa,tgm,my_theme,load_tgm" />
</properties>
</rule>
</ruleset>