-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs.xml
More file actions
66 lines (52 loc) · 2.09 KB
/
Copy pathphpcs.xml
File metadata and controls
66 lines (52 loc) · 2.09 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
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="WPSocio">
<!-- Enable colors in report -->
<arg name="colors" />
<!-- Add source codes in the report -->
<arg value="s" />
<config name="installed_paths" value="../../phpcsstandards/phpcsextra,../../phpcsstandards/phpcsutils,../../wp-coding-standards/wpcs"/>
<file>.</file>
<exclude-pattern>/.git/</exclude-pattern>
<exclude-pattern>*/src/assets/*</exclude-pattern>
<exclude-pattern>*/src/includes/bot-api/*</exclude-pattern>
<exclude-pattern>*/src/includes/format-text/*</exclude-pattern>
<exclude-pattern>*/src/languages/*</exclude-pattern>
<exclude-pattern>*/temp/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/index.php</exclude-pattern>
<!-- Load WordPress Coding standards -->
<rule ref="WordPress" />
<!-- Customize -->
<rule ref="WordPress">
<!-- Disable File Name warning -->
<exclude name="WordPress.Files.FileName" />
<!-- Disable short array syntax warning -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<!-- Disable NoReservedKeywordParameterNames warning -->
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames" />
</rule>
<!-- Disallow Long Array Syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found">
<type>warning</type>
</rule>
<!-- Disable specific rules for PHP packages -->
<rule ref="WordPress.NamingConventions.ValidVariableName">
<exclude-pattern>*/packages/php/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidFunctionName">
<exclude-pattern>*/packages/php/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>*/packages/php/*</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<exclude-pattern>*/packages/php/*</exclude-pattern>
</rule>
<!-- Disable function comment rule when {@inheritdoc} is present -->
<rule ref="Squiz.Commenting.FunctionComment">
<properties>
<property name="skipIfInheritdoc" value="true" />
</properties>
</rule>
</ruleset>