-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathphpcs.xml
More file actions
39 lines (32 loc) · 1.18 KB
/
Copy pathphpcs.xml
File metadata and controls
39 lines (32 loc) · 1.18 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
<?xml version="1.0"?>
<ruleset name="WP-PageNavi">
<description>WordPress Coding Standards for WP-PageNavi.</description>
<file>.</file>
<!-- WPCS has no JavaScript sniffs; never let PHPCS touch .js. -->
<arg name="extensions" value="php"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg value="sp"/>
<!-- Scanning these makes the CI runner run out of memory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<rule ref="WordPress"/>
<config name="minimum_wp_version" value="6.0"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="wp-pagenavi"/>
<!-- The navigation aria-labels reuse core's own strings. -->
<element value="default"/>
</property>
</properties>
</rule>
<!-- The tests assert on the plugin's own markup, so they must not escape it. -->
<rule ref="WordPress.Security.EscapeOutput">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<!-- Tests write real fixture files; WP_Filesystem is not appropriate there. -->
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
</ruleset>