-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathphpcs.xml
36 lines (29 loc) · 1.57 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="Autoptimize Coding Standards">
<description>Modified from WordPress Coding Standards for Plugins</description>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<!-- Show progress and sniff codes in all reports -->
<arg value="ps"/>
<config name="testVersion" value="5.6"/>
<file>./autoptimize.php</file>
<file>./classes/</file>
<exclude-pattern>./vendor/</exclude-pattern>
<exclude-pattern>./external/</exclude-pattern>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="WordPress-Core">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="PEAR.NamingConventions.ValidClassName.StartWithCapital"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
<exclude name="Generic.Classes.OpeningBraceSameLine.BraceOnNewLine"/>
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.OpenBraceNotSameLine"/>
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis"/>
<exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
</rule>
<rule ref="WordPress-Docs" />
<rule ref="PHPCompatibility"/>
</ruleset>