Skip to content

Commit f0b2185

Browse files
committed
Include extended ruleset for WC
1 parent 45e0a21 commit f0b2185

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Prospress-WC/ruleset.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Prospress-WC">
3+
<description>Prospress WooCommerce Coding Standards</description>
4+
5+
<!-- Include the main Prospress stnadard -->
6+
<rule ref="Prospress"/>
7+
8+
<!-- Modify the behavior of the checks for escaping functions -->
9+
<rule ref="WordPress.Security.EscapeOutput">
10+
<!-- ignore wcs plain text email templates - strip_tags is run over the output amongst other things -->
11+
<exclude-pattern>*/templates/emails/plain/*</exclude-pattern>
12+
<properties>
13+
<!-- e.g. body_class, the_content, the_excerpt -->
14+
<property name="customAutoEscapedFunctions" type="array" value="woocommerce_wp_select,wcs_help_tip"/>
15+
<!-- e.g. esc_attr, esc_html, esc_url-->
16+
<property name="customEscapingFunctions" type="array" value="wcs_json_encode,htmlspecialchars,wp_kses_allow_underscores"/>
17+
</properties>
18+
</rule>
19+
</ruleset>

0 commit comments

Comments
 (0)