Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
49 lines (43 loc) · 1.91 KB
/
Copy pathphpcs.xml
File metadata and controls
49 lines (43 loc) · 1.91 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="SureCart">
<description>Plugin Coding Standard</description>
<!-- Check all PHP files in directory tree by default. -->
<file>.</file>
<!-- Arguments - extension, parallel, colors, show porgress, Show sniff codes in all reports -->
<arg name="extensions" value="php"/>
<arg name="parallel" value="20"/>
<arg name="colors"/>
<arg value="sp"/>
<arg value="s"/>
<!-- Exclude pattern -->
<exclude-pattern>dist</exclude-pattern>
<exclude-pattern>node_modules</exclude-pattern>
<exclude-pattern>resources</exclude-pattern>
<exclude-pattern>vendor</exclude-pattern>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
<rule ref="Generic.Commenting.Todo" />
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="string" value="surecart" />
</properties>
</rule>
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Core">
<!-- Exclude rules -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="Squiz.Commenting.FileComment" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
<exclude name="Squiz.PHP.CommentedOutCode.Found" />
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
<exclude name="Squiz.Commenting.VariableComment.Missing" />
<exclude name="Squiz.Commenting.ClassComment.Missing" />
<!-- Exceptions are caught and returned as WP_Error, never printed, so escaping at throw would double-escape. -->
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
</rule>
</ruleset>