-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist.example
More file actions
38 lines (32 loc) · 1.32 KB
/
Copy pathphpcs.xml.dist.example
File metadata and controls
38 lines (32 loc) · 1.32 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
<description>PHPCS configuration for my-plugin.</description>
<file>.</file>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<rule ref="Apermo"/>
<!-- Project text domain for i18n validation. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="my-plugin"/>
</property>
</properties>
</rule>
<!--
Project prefixes for global functions, hooks, constants, and namespace roots.
Two entries are needed because the namespace root is PascalCase while the
function/hook prefix is snake_case.
-->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="My_Plugin"/>
<element value="my_plugin"/>
</property>
</properties>
</rule>
<!-- Minimum supported WordPress version (controls deprecated function warnings). -->
<config name="minimum_wp_version" value="6.2"/>
</ruleset>