-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
59 lines (46 loc) · 1.9 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
59 lines (46 loc) · 1.9 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
<?xml version="1.0"?>
<ruleset name=" WooCommerce Wp super cache minify Coding Standards">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- See https://github.com/WordPress/WordPress-Coding-Standards -->
<!-- See https://github.com/PHPCompatibility/PHPCompatibilityWP -->
<!-- Set a description for this ruleset. -->
<description>A custom set of code standard rules to check for Wp Super Cache Minify Add-on.</description>
<!-- Exclude patterns. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<arg value="sp" />
<arg name="basepath" value="." />
<arg name="parallel" value="8" />
<arg name="extensions" value="php" />
<!-- Check the entire plugin. -->
<file>.</file>
<!-- Include the WordPres standard. -->
<rule ref="WordPress">
<exclude name="WordPress.PHP.YodaConditions"/>
</rule>
<!-- Include the WordPress-Extra standard. -->
<rule ref="WordPress-Extra"/>
<!-- Let's also check that everything is properly documented. -->
<rule ref="WordPress-Docs"/>
<!-- Add in some extra rules from other standards. -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.Commenting.Todo"/>
<config name="minimum_supported_wp_version" value="3.7"/>
<!-- Verify that the text_domain is set to the desired text-domain. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="wpsc_minify"/>
</property>
</properties>
</rule>
<!-- Verify that everything in the global namespace is prefixed with a theme specific prefix. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="wpsc_minify" />
</properties>
</rule>
<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP"/>
</ruleset>