-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
67 lines (60 loc) · 2.42 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
67 lines (60 loc) · 2.42 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
<?xml version="1.0"?>
<ruleset name="Agent Builder">
<description>Coding standards for the Agent Builder WordPress plugin.</description>
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/languages/*</exclude-pattern>
<arg value="sp"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<rule ref="WordPress-Extra">
<!-- Namespaced code (Agentic\...) doesn't need file-based class naming. -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<!--
This plugin's public prefix is agent_builder_ / AGENT_BUILDER_,
matching the agent-builder slug/text domain. The Agentic_ prefix
is also registered: it's used only by the small set of classes
that must live in the global namespace (loaded before the
autoloader) rather than under the Agentic\ PHP namespace — those
are still consistently prefixed, just not namespaced, so they
don't "leak" unprefixed globals either.
-->
<property name="prefixes" type="array">
<element value="agent_builder"/>
<element value="Agentic"/>
</property>
</properties>
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<!--
The plugin's custom capabilities. They are virtual: never
registered with add_cap(), but granted at runtime by
User_Roles::filter_user_has_cap() from the stored role settings
(User_Roles::CAP_PREFIX + privilege key). Listing them here is
what tells the Capabilities sniff they are real.
-->
<property name="custom_capabilities" type="array">
<element value="agent_builder_view_dashboard"/>
<element value="agent_builder_manage_agents"/>
<element value="agent_builder_view_audit_log"/>
<element value="agent_builder_manage_tools"/>
<element value="agent_builder_run_tasks_manually"/>
<element value="agent_builder_manage_settings"/>
<element value="agent_builder_chat_frontend"/>
<element value="agent_builder_chat_admin_bar"/>
<element value="agent_builder_view_agent_list"/>
<element value="agent_builder_use_uploaded_agents"/>
</property>
</properties>
</rule>
<rule ref="WordPress.Security.EscapeOutput"/>
<rule ref="WordPress.Security.NonceVerification"/>
</ruleset>