PluginProbe ʕ •ᴥ•ʔ
Alma – Pay in installments or later for WooCommerce / 4.2.1
Alma – Pay in installments or later for WooCommerce v4.2.1
6.4.1 6.4.0 6.3.0 6.2.1 6.2.0 trunk 3.0.0 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.10.0 5.11.0 5.12.0 5.13.0 5.13.1 5.14.1 5.14.2 5.15.0 5.16.0 5.16.1 5.16.2 5.2.0 5.2.1 5.3.0 5.4.0 5.5.0 5.6.0 5.7.0 5.8.0 5.8.1 5.9.0 6.0.4 6.0.6 6.0.7 6.1.0
alma-gateway-for-woocommerce / phpcs.xml
alma-gateway-for-woocommerce Last commit date
assets 3 years ago includes 3 years ago languages 3 years ago public 3 years ago tests 3 years ago trunk 3 years ago vendor 3 years ago LICENSE 4 years ago alma-gateway-for-woocommerce.php 3 years ago autoload.php 3 years ago composer.json 3 years ago composer.lock 3 years ago phpcs.xml 3 years ago readme.txt 3 years ago uninstall.php 3 years ago
phpcs.xml
101 lines
1 <?xml version="1.0"?>
2 <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Alma Woocommerce Gateway" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
3
4 <description>A custom set of rules to check for Alma Woocommerce Gateway</description>
5
6 <!-- Exclude WP Core folders and files from being checked. -->
7 <exclude-pattern>/docroot/wp-admin/*</exclude-pattern>
8 <exclude-pattern>/docroot/wp-includes/*</exclude-pattern>
9 <exclude-pattern>/docroot/wp-*.php</exclude-pattern>
10 <exclude-pattern>/docroot/index.php</exclude-pattern>
11 <exclude-pattern>/docroot/xmlrpc.php</exclude-pattern>
12 <exclude-pattern>/docroot/wp-content/plugins/*</exclude-pattern>
13
14 <!-- Exclude tests. -->
15 <exclude-pattern>/tests/*</exclude-pattern>
16
17 <!-- Exclude widget -->
18 <exclude-pattern>/assets/widget/*</exclude-pattern>
19
20 <!-- Exclude the Composer Vendor directory. -->
21 <exclude-pattern>/vendor/*</exclude-pattern>
22
23 <!-- Exclude the Node Modules directory. -->
24 <exclude-pattern>/node_modules/*</exclude-pattern>
25
26 <!-- Exclude minified Javascript files. -->
27 <exclude-pattern>*.min.js</exclude-pattern>
28
29 <!-- Include the WordPress-Extra standard. -->
30 <rule ref="WordPress-Extra">
31 <!--
32 We may want a middle ground though. The best way to do this is add the
33 entire ruleset, then rule by rule, remove ones that don't suit a project.
34 We can do this by running `phpcs` with the '-s' flag, which allows us to
35 see the names of the sniffs reporting errors.
36 Once we know the sniff names, we can opt to exclude sniffs which don't
37 suit our project like so.
38 The below two examples just show how you can exclude rules.
39 They are not intended as advice about which sniffs to exclude.
40 -->
41
42 <!--
43 <exclude name="WordPress.WhiteSpace.ControlStructureSpacing"/>
44 <exclude name="WordPress.Security.EscapeOutput"/>
45 -->
46 </rule>
47
48 <!-- Let's also check that everything is properly documented. -->
49 <rule ref="WordPress-Docs"/>
50
51 <!-- Add in some extra rules from other standards. -->
52 <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
53 <rule ref="Generic.Commenting.Todo"/>
54
55 <!-- Check for PHP cross-version compatibility. -->
56 <!--
57 To enable this, the PHPCompatibilityWP standard needs
58 to be installed.
59 See the readme for installation instructions:
60 https://github.com/PHPCompatibility/PHPCompatibilityWP
61 For more information, also see:
62 https://github.com/PHPCompatibility/PHPCompatibility
63 -->
64 <config name="testVersion" value="5.6-"/>
65 <rule ref="PHPCompatibilityWP"/>
66
67 <!--
68 To get the optimal benefits of using WPCS, we should add a couple of
69 custom properties.
70 Adjust the values of these properties to fit our needs.
71 For information on additional custom properties available, check out
72 the wiki:
73 https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties
74 -->
75 <config name="minimum_supported_wp_version" value="4.4"/>
76
77 <rule ref="WordPress.WP.I18n">
78 <properties>
79 <property name="text_domain" type="array">
80 <element value="alma-gateway-for-woocommerce"/>
81 </property>
82 </properties>
83 </rule>
84
85 <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
86 <properties>
87 <property name="prefixes" type="array">
88 <element value="Alma\Woocommerce"/>
89 <element value="alma"/>
90 </property>
91
92 </properties>
93 </rule>
94
95 <rule ref="Squiz.Commenting.FunctionCommentThrowTag">
96 <exclude name="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber"/>
97 </rule>
98
99 <config name="ignore_warnings_on_exit" value="1"/>
100 </ruleset>
101