-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathphpcs.xml
More file actions
72 lines (67 loc) · 2.96 KB
/
Copy pathphpcs.xml
File metadata and controls
72 lines (67 loc) · 2.96 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
69
70
71
72
<?xml version="1.0"?>
<ruleset name="Themeisle">
<description>Themeisle rules for PHP_CodeSniffer</description>
<file>.</file>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>dist/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>includes/lib/*</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.min.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.asset.php</exclude-pattern>
<exclude-pattern>globals/google-fonts.php</exclude-pattern>
<exclude-pattern>bin/*.php</exclude-pattern>
<!-- PSR-4 `src/` tree: excluded until PHPCS doc + DB sniff alignment is complete for namespaced code. -->
<exclude-pattern>src/*</exclude-pattern>
<rule ref="WordPress-VIP-Go">
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>includes/modules/elementor_booster/widgets/*.php</exclude-pattern>
<exclude-pattern>includes/modules/custom_layouts/elementor/custom_layout.php</exclude-pattern>
</rule>
<rule ref="WordPress-Core">
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra">
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
</rule>
<rule ref="PHPCompatibilityWP" />
<rule ref="WordPressVIPMinimum.Hooks.AlwaysReturnInFilter">
<exclude-pattern>includes/core/generic_style.php</exclude-pattern>
</rule>
<rule ref="WordPressVIPMinimum.Security.Vuejs.RawHTMLDirectiveFound">
<exclude-pattern>
includes/modules/header_footer_grid/templates/components/page-header-html.php</exclude-pattern>
</rule>
<rule
ref="PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore">
<exclude-pattern>includes/modules/elementor_booster/widgets/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="woocommerce-product-addon" />
<element value="default" />
</property>
</properties>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property name="customAutoEscapedFunctions" type="array">
<element value="neve_kses_svg" />
</property>
</properties>
</rule>
<rule ref="WordPress.DB.PreparedSQL"></rule>
<arg name="extensions" value="php" />
<arg value="sp" />
<arg name="basepath" value="./" />
<arg name="parallel" value="20" />
</ruleset>