forked from facebook/facebook-for-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
60 lines (47 loc) · 1.81 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>
<ruleset name="SkyVerge">
<description>WordPress Coding Standards</description>
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility/PHPCompatibility,vendor/wp-coding-standards/wpcs" />
<!-- Only sniff PHP files -->
<arg name="extensions" value="php"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Up the Memory limit for large plugins -->
<ini name="memory_limit" value="320M"/>
<!-- Include the plugin files -->
<file>facebook-commerce-events-tracker.php</file>
<file>facebook-commerce-messenger-chat.php</file>
<file>facebook-commerce-pixel-event.php</file>
<file>facebook-commerce.php</file>
<file>facebook-config-warmer.php</file>
<file>facebook-for-woocommerce.php</file>
<file>includes</file>
<!-- Exclude these paths -->
<exclude-pattern>assets</exclude-pattern>
<exclude-pattern>vendor</exclude-pattern>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra"/>
<rule ref="PHPCompatibility"/>
<rule ref="WordPress.Security.ValidatedSanitizedInput">
<properties>
<property name="customSanitizingFunctions" type="array" value="wc_clean,wc_sanitize_tooltip,wc_format_decimal,wc_stock_amount,wc_sanitize_permalink,wc_sanitize_textarea" />
</properties>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property name="customEscapingFunctions" type="array" value="wc_help_tip,wc_sanitize_tooltip,wc_selected" />
</properties>
</rule>
<!-- really Important Sniffs -->
<rule ref="WordPress.Security">
<severity>10</severity>
</rule>
<rule ref="WordPress.DB.PreparedSQL">
<severity>10</severity>
</rule>
<!-- Unimportant Sniffs -->
<rule ref="Squiz.Commenting">
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
</rule>
</ruleset>