-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
24 lines (22 loc) · 1.16 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
<?xml version="1.0"?>
<!-- See: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<ruleset name="Parcel Pro Standard" namespace="Parcelpro\CS\Standard">
<description>The Parcel Pro code style standard.</description>
<file>.</file>
<exclude-pattern>./vendor</exclude-pattern>
<exclude-pattern>./wp_data</exclude-pattern>
<exclude-pattern>**/*.js</exclude-pattern>
<exclude-pattern>**/*.css</exclude-pattern>
<rule ref="PSR12">
<!-- Allow lines longer than 120 characters. -->
<exclude name="Generic.Files.LineLength"/>
<!-- Allow classes without namespace. -->
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<!-- Allow class and methods names that are not in Pascal Case/Camel Caps. -->
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<!-- Allow files to declare new symbols and have logic with side effects. -->
<!-- This is required for the woocommerce-parcelpro.php file. -->
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
</rule>
</ruleset>