-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.xml
34 lines (30 loc) · 1.1 KB
/
.phpcs.xml
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
<?xml version="1.0"?>
<ruleset name="team51-plugin-scaffold" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Custom ruleset for the Community Gallery Tags plugin.</description>
<!-- Extend the A8CTeam51 ruleset. -->
<rule ref="./vendor/a8cteam51/team51-configs/quality-tools/phpcs.xml.dist"/>
<!-- Check that the proper text domain(s) is used everywhere. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="community-gallery-tags"/>
</property>
</properties>
</rule>
<!-- Check that the proper prefix is used everywhere. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="cgt_"/>
<element value="community_gallery_tags_"/>
</property>
</properties>
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="cgt_tag_media" />
</property>
</properties>
</rule>
</ruleset>