-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
52 lines (43 loc) · 1.76 KB
/
phpcs.xml.dist
File metadata and controls
52 lines (43 loc) · 1.76 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0"?>
<ruleset name="WP Puller">
<description>Coding standards for the WP Puller plugin.</description>
<!-- What to scan. -->
<file>wp-puller</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/languages/*</exclude-pattern>
<!-- Only sniff PHP. -->
<arg name="extensions" value="php"/>
<!-- Show progress, use colors, show sniff codes in the report. -->
<arg value="ps"/>
<arg name="colors"/>
<!-- Run across as many cores as are available. -->
<arg name="parallel" value="8"/>
<!-- Minimum supported versions (kept in sync with the plugin header). -->
<config name="testVersion" value="7.4-"/>
<config name="minimum_wp_version" value="5.0"/>
<!-- WordPress Coding Standards. -->
<rule ref="WordPress">
<!-- The plugin ships pre-built assets; allow the existing file layout. -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<!-- PHP cross-version compatibility, scoped to the supported WP range. -->
<rule ref="PHPCompatibilityWP"/>
<!-- Enforce the plugin's text domain on all i18n calls. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="wp-puller"/>
</property>
</properties>
</rule>
<!-- Enforce the plugin's global prefixes. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="wp_puller"/>
<element value="WP_Puller"/>
</property>
</properties>
</rule>
</ruleset>