-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
63 lines (53 loc) · 2.93 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<ruleset name="LezWatch.TV Coding Standards">
<description>A custom ruleset to take in account both WordPress and Lesbian standards.</description>
<file>.</file>
<arg name="extensions" value="php" />
<arg name="colors" />
<arg value="s" /><!-- Show sniff codes in all reports. -->
<arg value="p" /><!-- Show progress. -->
<!-- Rules: Check PHP version compatibility -->
<!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="8.1-"/>
<!-- https://github.com/PHPCompatibility/PHPCompatibilityWP -->
<rule ref="PHPCompatibilityWP"/>
<!-- Rules: WordPress Coding Standards -->
<config name="minimum_supported_wp_version" value="6.4"/>
<rule ref="WordPress-Extra">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralSingle" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralPlural" />
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode" />
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents" />
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_file_get_contents" />
<exclude name="WordPress.WP.DeprecatedFunctions.sanitize_urlFound" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
</rule>
<!-- Rules: LWTV Custom Commands -->
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property name="customAutoEscapedFunctions" value="lwtv_plugin,lwtv_symbolicons,get_previous_posts_link,get_next_posts_link,yikes_pagination_get_page,yikes_pagination_get_page_space_right,yikes_pagination_get_page_space_left,yikes_pagination_get_first_page,LWTV_Features,lwtv_yikes_chardata,lwtv_yikes_show_star,LWTV_Statistics,km_rpbt_related_posts_by_taxonomy_gallery" type="array" />
<property name="customEscapingFunctions" value="facetwp_display" type="array" />
</properties>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<exclude-pattern>class-gf-approvals.php</exclude-pattern>
</rule>
<!-- Node and Vendor -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- Unused files -->
<exclude-pattern>/inc/dist/*</exclude-pattern>
<!-- Blocks -->
<exclude-pattern>*/blocks/build/*</exclude-pattern>
<!-- Extensions - not written by us. -->
<exclude-pattern>*/facetwp-cmb2/*</exclude-pattern>
<exclude-pattern>*/cmb2-grid/*</exclude-pattern>
<exclude-pattern>*/cmb-field-select2/*</exclude-pattern>
<exclude-pattern>*/shadow-taxonomy/*</exclude-pattern>
<!-- External Libraries -->
<exclude-pattern>*/ICal/*</exclude-pattern>
</ruleset>