PluginProbe
Orderable – Restaurant & Food Ordering System / 0.2.0
Orderable – Restaurant & Food Ordering System v0.2.0
0.1.4 0.1.5 0.2.0 1.0.0 1.1.0 1.1.1 1.10.0 1.10.1 1.11.0 1.12.0 1.12.1 1.12.2 1.13.0 1.14.0 1.15.0 1.16.0 1.17.0 1.17.1 1.18.0 1.19.0 1.19.1 1.19.2 1.2.0 1.20.0 1.20.1 All 44 releases
← All changes | phpcs.xml +15 -44 1.16.00.2.0 View file →
@@ -1,56 +1,27 @@
1 1 <?xml version="1.0"?>
2 -<ruleset name="IconicWP-Default">
3 - <description>Generally-applicable sniffs for Iconic plugins</description>
2 +<ruleset name="WooCommerce Coding Standards">
3 + <description>Generally-applicable sniffs for WooCommerce plugins</description>
4 4
5 5 <!-- Configs -->
6 - <config name="minimum_supported_wp_version" value="5.2"/>
7 - <config name="testVersion" value="7.1-"/>
6 + <config name="minimum_supported_wp_version" value="4.7"/>
7 + <config name="testVersion" value="5.6-"/>
8 8
9 - <!-- Excludes -->
10 - <exclude-pattern>*/dist/*</exclude-pattern>
11 - <exclude-pattern>*/languages/*</exclude-pattern>
12 - <exclude-pattern>*/.github/*</exclude-pattern>
13 - <exclude-pattern>*/wp-admin/*</exclude-pattern>
14 - <exclude-pattern>*/wp-includes/*</exclude-pattern>
15 - <exclude-pattern>*/wp-config.php</exclude-pattern>
16 - <exclude-pattern>*/functions.php</exclude-pattern>
17 - <exclude-pattern>*/*.asset.php</exclude-pattern>
18 - <exclude-pattern>*/stubs/*</exclude-pattern>
19 -
20 - <!-- Third-party code -->
21 - <exclude-pattern>*/node_modules/*</exclude-pattern>
22 - <exclude-pattern>*/vendor/*</exclude-pattern>
23 - <exclude-pattern>*/vendor-prefixed/*</exclude-pattern>
24 -
25 - <!-- Ensure certain file types aren't sniffed -->
26 - <exclude-pattern>*\.(css|js)</exclude-pattern>
27 -
28 - <!-- Rules -->
9 + <!-- Rules -->
29 10 <rule ref="WordPress">
30 11 <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
31 12 <exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
32 13 </rule>
33 14
34 - <rule ref="WordPress-Core">
35 - <exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
36 - <exclude name="WordPress.PHP.YodaConditions"/>
37 - </rule>
15 + <rule ref="vendor/woocommerce/woocommerce-sniffs/src/WooCommerce-Core/ruleset.xml"/>
16 + <rule ref="PHPCompatibility"/>
38 17
39 - <rule ref="WooCommerce-Core" />
40 - <rule ref="PHPCompatibilityWP"/>
18 + <!-- Args -->
19 + <arg name="extensions" value="php"/>
20 + <arg value="s"/>
41 21
42 - <rule ref="WordPress.WP.PostsPerPage">
43 - <properties>
44 - <property name="posts_per_page" value="200"/>
45 - </properties>
46 - </rule>
47 -
48 - <rule ref="WordPress-Extra">
49 - <!-- Don't require punctuation after inline comments -->
50 - <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
51 -
52 - <!-- Comment punctuation doesn't matter -->
53 - <exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/>
54 - <exclude name="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>
55 - </rule>
22 + <!-- Excludes -->
23 + <exclude-pattern>*/dev-lib/*</exclude-pattern>
24 + <exclude-pattern>*/node_modules/*</exclude-pattern>
25 + <exclude-pattern>*/vendor/*</exclude-pattern>
26 + <exclude-pattern>.github/</exclude-pattern>
56 27 </ruleset>