-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
36 lines (31 loc) · 1.55 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>PHP_CodeSniffer ruleset for WooCommerce PayPal Checkout.</description>
<config name="minimum_supported_wp_version" value="5.0" />
<arg value="psv"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="woocommerce-gateway-paypal-express-checkout" />
</properties>
</rule>
<rule ref="WooCommerce-Core">
<!-- We do not comply with these right now. -->
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound" />
<exclude name="Squiz.Commenting" />
<exclude name="Generic.Commenting" />
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
</rule>
<!-- Files to check -->
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>