forked from futtta/autoptimize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
36 lines (30 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="Autoptimize Coding Standards">
<description>Modified from WordPress Coding Standards for Plugins</description>
<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="Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
</rule>
<rule ref="WordPress-Docs" />
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<!--file>.</file-->
<file>autoptimize.php</file>
<file>classes</file>
<!-- Show progress and sniff codes in all reports -->
<arg value="ps"/>
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="5.3"/>
<!--exclude-pattern>*/node_modules/*</exclude-pattern-->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/external/*</exclude-pattern>
</ruleset>