-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
68 lines (57 loc) · 2.63 KB
/
phpcs.xml
File metadata and controls
68 lines (57 loc) · 2.63 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Better Post and Filter Widgets for Elementor" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
<description>A custom ruleset for Better Post and Filter Widgets for Elementor</description>
<!-- Include all files in the current directory -->
<file>.</file>
<!-- Exclude unnecessary directories -->
<exclude-pattern>/docroot/wp-admin/*</exclude-pattern>
<exclude-pattern>/docroot/wp-includes/*</exclude-pattern>
<exclude-pattern>/docroot/wp-*.php</exclude-pattern>
<exclude-pattern>/docroot/index.php</exclude-pattern>
<exclude-pattern>/docroot/xmlrpc.php</exclude-pattern>
<exclude-pattern>/docroot/wp-content/plugins/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Prevent minified JavaScript files from being analyzed -->
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.min.css</exclude-pattern>
<!-- Set basepath and parallel options -->
<arg name="basepath" value="."/>
<arg name="parallel" value="8"/>
<!-- Include the WordPress-Extra standard -->
<rule ref="WordPress-Extra">
<exclude name="WordPress.Security.EscapeOutput"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<exclude name="Generic.Arrays.DisallowLongArraySyntax"/>
<exclude name="WordPress.Arrays.ArrayIndentation"/>
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing"/>
<exclude name="WordPress.Arrays.MultipleStatementAlignment"/>
</rule>
<!-- Include WordPress-Docs rules -->
<rule ref="WordPress-Docs"/>
<!-- Enable PHP cross-version compatibility checks if PHPCompatibilityWP is installed -->
<!-- Uncomment the below lines to enable -->
<!--
<config name="testVersion" value="5.6-"/>
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php</include-pattern>
</rule>
-->
<!-- Custom sniff configurations -->
<config name="minimum_wp_version" value="6.0"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="better-post-filter-widgets-for-elementor"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="BPFEW_"/>
</property>
</properties>
</rule>
</ruleset>