-
Notifications
You must be signed in to change notification settings - Fork 65
/
phpcs.xml
executable file
·38 lines (31 loc) · 1.44 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
37
38
<?xml version="1.0"?>
<ruleset name="rules">
<description>rules</description>
<file>mailchimp-for-wp.php</file>
<file>includes/</file>
<file>integrations/</file>
<file>config/</file>
<config name="minimum_supported_wp_version" value="4.6"/>
<exclude-pattern>**/*.js</exclude-pattern>
<rule ref="PSR12">
<exclude name="PSR1.Methods.CamelCapsMethodName" />
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
<exclude name="PSR12.Files.FileHeader.HeaderPosition" />
</rule>
<rule ref="WordPress-Core">
<exclude name="WordPress.WhiteSpace" />
<exclude name="Generic.WhiteSpace" />
<exclude name="Generic.Classes.OpeningBraceSameLine" />
<exclude name="WordPress.PHP.YodaConditions" />
<exclude name="PEAR.Functions.FunctionCallSignature" />
<exclude name="NormalizedArrays.Arrays.ArrayBraceSpacing" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Arrays" />
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
<exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing" />
</rule>
<arg name="colors" />
</ruleset>