-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
94 lines (78 loc) · 3.08 KB
/
Copy pathphpcs.xml
File metadata and controls
94 lines (78 loc) · 3.08 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
<?xml version="1.0"?>
<ruleset name="Queuety">
<description>WordPress Coding Standards for Queuety</description>
<file>./queuety.php</file>
<file>./bootstrap.php</file>
<file>./src/</file>
<file>./cli/</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/templates/*</exclude-pattern>
<rule ref="WordPress"/>
<!-- PSR-4 style file naming -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>*</exclude-pattern>
</rule>
<!-- Allow dynamic hook names -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound">
<severity>0</severity>
</rule>
<!-- Allow reserved keyword parameter names -->
<rule ref="Universal.NamingConventions.NoReservedKeywordParameterNames">
<severity>0</severity>
</rule>
<!-- Allow unused method parameters (required by interface signatures) -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<severity>0</severity>
</rule>
<!-- RuntimeException messages are not browser output -->
<rule ref="WordPress.Security.EscapeOutput.ExceptionNotEscaped">
<severity>0</severity>
</rule>
<!-- Core engine uses json_encode directly (no WP dependency) -->
<rule ref="WordPress.WP.AlternativeFunctions.json_encode_json_encode">
<severity>0</severity>
</rule>
<!-- Core engine uses fwrite for stderr (no WP dependency) -->
<rule ref="WordPress.WP.AlternativeFunctions.file_system_operations_fwrite">
<severity>0</severity>
</rule>
<!-- Allow short ternaries in engine code -->
<rule ref="Universal.Operators.DisallowShortTernary">
<severity>0</severity>
</rule>
<!-- Yoda conditions: relax for readability -->
<rule ref="WordPress.PHP.YodaConditions.NotYoda">
<severity>0</severity>
</rule>
<!-- bootstrap.php defines WP constants dynamically -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound">
<exclude-pattern>bootstrap.php</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.VariableConstantNameFound">
<exclude-pattern>bootstrap.php</exclude-pattern>
</rule>
<!-- PHP 8.2+ -->
<config name="testVersion" value="8.2-"/>
<!-- Text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="queuety"/>
</property>
</properties>
</rule>
<!-- Prefix for hooks, functions, classes -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="queuety"/>
<element value="Queuety"/>
</property>
</properties>
</rule>
</ruleset>