Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
101 lines (94 loc) · 3.98 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
101 lines (94 loc) · 3.98 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0"?>
<ruleset name="JOOservices WP themes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>WordPress-Extra (security, correctness) with deliberate relaxations for PSR-4 object oriented code. See docs/guides/coding-standards.md.</description>
<file>packages</file>
<file>plugins</file>
<file>themes</file>
<file>tools</file>
<file>tests</file>
<file>docker</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/assets/build/*</exclude-pattern>
<exclude-pattern>*/resources/build/*</exclude-pattern>
<exclude-pattern>*/themes/*/core/*</exclude-pattern>
<exclude-pattern>*/tests/tooling/fixtures/*</exclude-pattern>
<exclude-pattern>*/tests/Fixtures/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<arg name="colors"/>
<arg value="ps"/>
<config name="testVersion" value="8.3-"/>
<config name="minimum_wp_version" value="6.6"/>
<rule ref="WordPress-Extra">
<!-- Modern PSR-4 code: class-per-file names, camelCase methods, short arrays, typed code. -->
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid"/>
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
<exclude name="Universal.Files.SeparateFunctionsFromOO"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Universal.Operators.DisallowShortTernary"/>
</rule>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="/"/>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="joo_"/>
<element value="JOO_"/>
<element value="JOOservices"/>
<element value="jooservices"/>
</property>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="joo-core"/>
<element value="jooservices"/>
<element value="starter"/>
<element value="jooservices-resume"/>
</property>
</properties>
</rule>
<!-- Tests, tools and docker helpers are not shipped; relax output/globals rules there. -->
<rule ref="WordPress.Security.EscapeOutput">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/test-kit/*</exclude-pattern>
<exclude-pattern>*/tools/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/test-kit/*</exclude-pattern>
<exclude-pattern>*/tools/*</exclude-pattern>
<!-- Block templates are included from inside a closure: their variables are local. -->
<exclude-pattern>*/resources/blocks/*/render.php</exclude-pattern>
<exclude-pattern>*/parts/joo/*.php</exclude-pattern>
<exclude-pattern>*/docker/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/test-kit/*</exclude-pattern>
<exclude-pattern>*/tools/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/tools/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions">
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/test-kit/*</exclude-pattern>
<exclude-pattern>*/tools/*</exclude-pattern>
</rule>
<rule ref="WordPress.Security.NonceVerification">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>