-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathphpcs.xml
More file actions
59 lines (53 loc) · 2.49 KB
/
Copy pathphpcs.xml
File metadata and controls
59 lines (53 loc) · 2.49 KB
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="Mynote WordPress Theme Coding Standards">
<description>WordPress Coding Standards for the Mynote theme.</description>
<arg name="extensions" value="php"/>
<arg name="basepath" value="./"/>
<arg name="cache"/>
<arg name="parallel" value="20"/>
<arg value="ps"/>
<config name="ignore_warnings_on_exit" value="1"/>
<ini name="memory_limit" value="256M"/>
<file>.</file>
<exclude-pattern>*/.docker/*</exclude-pattern>
<exclude-pattern>*/assets/*</exclude-pattern>
<exclude-pattern>*/inc/assets/*</exclude-pattern>
<exclude-pattern>*/languages/*</exclude-pattern>
<exclude-pattern>*/mynote-child/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/scss/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/wp-content/*</exclude-pattern>
<rule ref="WordPress">
<exclude name="Squiz.Commenting.ClassComment"/>
<exclude name="Squiz.Commenting.FileComment"/>
<exclude name="Squiz.Commenting.FunctionComment"/>
<exclude name="Squiz.Commenting.DocCommentAlignment"/>
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
<exclude name="Squiz.Commenting.InlineComment.NoSpaceBefore"/>
<exclude name="Squiz.Commenting.VariableComment.Missing"/>
<exclude name="Squiz.Commenting.VariableComment.MissingVar"/>
<exclude name="Generic.CodeAnalysis.EmptyStatement"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
<exclude name="PSR2.Files.EndFileNewline.TooMany"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction"/>
<exclude name="Universal.CodeAnalysis.NoEchoSprintf"/>
<exclude name="Universal.ControlStructures.DisallowLonelyIf"/>
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
<exclude name="WordPress.DateTime.RestrictedFunctions.date_date"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"/>
<exclude name="WordPress.Security.EscapeOutput"/>
<exclude name="WordPress.WP.GlobalVariablesOverride"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="mynote"/>
</property>
</properties>
</rule>
</ruleset>