-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
64 lines (57 loc) · 3.09 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs">
<!-- THIS ONE ADDED -->
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
</rule>
<rule ref="Squiz.Commenting">
<!-- THIS ONE ADDED -->
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<!-- THESE COPIED FROM wpcs/WordPress-Docs/rules.xml -->
<exclude name="Squiz.Commenting.BlockComment.SingleLine"/>
<exclude name="Squiz.Commenting.BlockComment.FirstLineIndent"/>
<exclude name="Squiz.Commenting.BlockComment.LineIndent"/>
<exclude name="Squiz.Commenting.BlockComment.LastLineIndent"/>
<exclude name="Squiz.Commenting.BlockComment.WrongStart"/>
<exclude name="Squiz.Commenting.BlockComment.NoEmptyLineAfter"/>
<exclude name="Squiz.Commenting.ClassComment.TagNotAllowed"/>
<exclude name="Squiz.Commenting.ClosingDeclarationComment.Missing"/>
<exclude name="Squiz.Commenting.DocCommentAlignment.SpaceAfterStar"/>
<exclude name="Squiz.Commenting.FileComment.IncorrectAuthor"/>
<exclude name="Squiz.Commenting.FileComment.IncorrectCopyright"/>
<exclude name="Squiz.Commenting.FileComment.MissingAuthorTag"/>
<exclude name="Squiz.Commenting.FileComment.MissingSubpackageTag"/>
<exclude name="Squiz.Commenting.FileComment.MissingCopyrightTag"/>
<exclude name="Squiz.Commenting.FileComment.PackageTagOrder"/>
<exclude name="Squiz.Commenting.FileComment.SubpackageTagOrder"/>
<exclude name="Squiz.Commenting.FileComment.AuthorTagOrder"/>
<exclude name="Squiz.Commenting.FileComment.CopyrightTagOrder"/>
<exclude name="Squiz.Commenting.FunctionComment.IncorrectParamVarName"/>
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturn"/>
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturnNotVoid"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingReturn"/>
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentNotCapital"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName"/>
<exclude name="Squiz.Commenting.FunctionComment.TypeHintMissing"/>
<exclude name="Squiz.Commenting.InlineComment.DocBlock"/>
<exclude name="Squiz.Commenting.InlineComment.NotCapital"/>
<exclude name="Squiz.Commenting.LongConditionClosingComment"/>
<exclude name="Squiz.Commenting.PostStatementComment"/>
<exclude name="Squiz.Commenting.VariableComment.IncorrectVarType"/>
<exclude name="Squiz.Commenting.VariableComment.TagNotAllowed"/>
<exclude name="Squiz.Commenting.VariableComment.VarOrder"/>
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/>
</rule>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
<!-- Show progress and sniff codes in all reports -->
<arg value="ps"/>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/wpcs/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/tmp/*</exclude-pattern>
</ruleset>