-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpcs.xml
59 lines (49 loc) · 2.19 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Carousel Slider">
<description>Generally-applicable sniffs for WordPress plugins.</description>
<config name="text_domain" value="carousel-slider"/>
<!-- What to scan -->
<file>.</file>
<!-- Only sniff PHP files -->
<arg name="extensions" value="php"/>
<arg name="basepath" value="."/>
<!-- What to exclude from scan -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/resources/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/wordpress/*</exclude-pattern>
<!-- Enables parallel processing when available for faster results. -->
<arg name="parallel" value="10"/>
<!-- Show sniff and progress -->
<arg value="sp"/>
<!-- Rules: Check PHP version compatibility -->
<!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="7.0-"/>
<!-- Rules: WordPress Coding Standards -->
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
<config name="minimum_supported_wp_version" value="5.6"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra">
<!-- Ignore filename and classname error, as we are using PSR-4 Autoloading Standard -->
<exclude name="PEAR.NamingConventions.ValidClassName"/>
<exclude name="WordPress.Files.FileName"/>
<!-- Allow short array syntax -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
<!-- Ignore file comment, only class comment is enough for our project -->
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Universal.WhiteSpace.PrecisionAlignment.Found"/>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.7"/>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="/-"/>
</properties>
</rule>
</ruleset>