-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.ruleset.xml
51 lines (47 loc) · 2.42 KB
/
phpcs.ruleset.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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<arg name="colors" />
<arg value="ps" />
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php" />
<file>functions</file>
<file>hooks</file>
<file>app</file>
<file>tests</file>
<file>hamail.php</file>
<rule ref="WordPress-Core">
<exclude name="Generic.Files.LowercasedFilename" />
<exclude name="Generic.Commenting.DocComment.ShortNotCapital" />
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
<exclude name="WordPress.Files.FileName" />
<exclude name="Squiz.Commenting.FileComment" />
<exclude name="Squiz.PHP.CommentedOutCode" />
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
<exclude name="Squiz.Commenting.VariableComment.Missing" />
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" />
<exclude name="WordPress.WP.I18n.SingleUnderscoreGetTextFunction" />
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
<exclude name="WordPress.DateTime.CurrentTimeTimestamp.RequestedUTC" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
<exclude name="Universal.Operators.DisallowShortTernary.Found" />
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames" />
</rule>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/wordpress/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/wp/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/tmp/*</exclude-pattern>
</ruleset>