-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpcs.xml
executable file
·52 lines (46 loc) · 2.44 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
<?xml version="1.0"?>
<ruleset name="Themeisle">
<description>Themeisle rules for PHP_CodeSnifferr</description>
<file>./</file>
<arg value="ps" />
<arg name="extensions" value="php" />
<config name="php_version" value="50600" />
<exclude-pattern type="relative">beaver/includes</exclude-pattern>
<exclude-pattern type="relative">vendor</exclude-pattern>
<exclude-pattern type="relative">sample-theme</exclude-pattern>
<exclude-pattern type="relative">node_modules</exclude-pattern>
<exclude-pattern type="relative">tests</exclude-pattern>
<exclude-pattern type="relative">**/build</exclude-pattern>
<rule ref="WordPress-Core">
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="WordPress.DB.PreparedSQL.NotPrepared" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamName" />
<exclude name="Squiz.Commenting.VariableComment.EmptyVar" />
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.PHP.StrictComparisons.LooseComparison" />
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
<exclude name="WordPress.PHP.RestrictedPHPFunctions.date_date" />
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="templates-patterns-collection" />
<element value="default" />
</property>
</properties>
</rule>
<arg value="sp" />
<arg name="basepath" value="./" />
<arg name="parallel" value="20" />
</ruleset>