-
Notifications
You must be signed in to change notification settings - Fork 25
/
phpcs.xml
59 lines (51 loc) · 2.59 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
<?xml version="1.0"?>
<ruleset name="Themeisle">
<description>Themeisle rules for PHP_CodeSnifferr</description>
<file>.</file>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>lib/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg value="sp"/>
<arg name="basepath" value="./" />
<arg name="parallel" value="20"/>
<rule ref="WordPress-Core">
<exclude name="Squiz.Commenting" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceBeforeCloseParenthesis" />
<exclude name="Squiz.PHP.EmbeddedPhp" />
<exclude name="Generic.Commenting" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket" />
<exclude name="Generic.Files.EndFileNewline.NotFound" />
<exclude name="WordPress.CodeAnalysis.AssignmentInCondition.Found" />
<exclude name="WordPress.PHP.StrictComparisons.LooseComparison" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment" />
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found" />
<exclude name="Generic.Formatting.MultipleStatementAlignment.IncorrectWarnin" />
<exclude name="Generic.Files.LowercasedFilename" />
<exclude name="Generic.NamingConventions.UpperCaseConstantName" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="Squiz.PHP.DisallowMultipleAssignments" />
<exclude name="WordPress.NamingConvention.ValidVariableName.StringNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
<exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing" />
<exclude name="Squiz.PHP.CommentedOutCode" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
</rule>
<rule ref="WordPress-Docs">
</rule>
<config name="testVersion" value="5.6-"/>
<rule ref="PHPCompatibilityWP">
</rule>
<rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
<severity>0</severity>
</rule>
</ruleset>