-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
37 lines (32 loc) · 1.65 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
<?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" />
<rule ref="WordPress-Core">
<exclude name="Generic.Files.LowercasedFilename" />
<exclude name="Generic.Commenting.DocComment.ShortNotCapital" />
<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="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound" />
</rule>
<rule ref="PHPCompatibility">
<config name="testVersion" value="7.4-"/>
</rule>
<arg name="extensions" value="php" />
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/work/*</exclude-pattern>
</ruleset>