-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpcs.xml
31 lines (26 loc) · 1.18 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
<?xml version="1.0"?>
<ruleset name="Custom Standard" namespace="MyProject\CS\Standard">
<description>A custom coding standard</description>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/data/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<arg name="extensions" value="php,inc" />
<arg name="report-width" value="120" />
<arg name="colors"/>
<arg value="sp"/>
<!--
You can hard-code custom php.ini settings into your custom standard.
The following tag sets the memory limit to 64M.
-->
<ini name="memory_limit" value="64M"/>
<autoload>./vendor/autoload.php</autoload>
<rule ref="WordPress-Core">
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
</rule>
</ruleset>