-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
34 lines (28 loc) · 983 Bytes
/
.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="ft-site-editing">
<description>Coding standards for ft-site-editing</description>
<file>.</file>
<arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
<!--
is created during composer install,
when package is tested
and not running within ft-platform
-->
<exclude-pattern>*/wp-content/*</exclude-pattern>
<exclude-pattern>*/wordpress/*</exclude-pattern>
<!-- Use figuren.theater Coding Standards -->
<rule ref="figurentheater" />
<!-- Allow to use text-domain strings from required plugins -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="figurentheater"/>
<element value="image-source-control-isc"/>
</property>
</properties>
</rule>
<!-- No need to only have final classes. -->
<rule ref="Universal.Classes.RequireFinalClass.NonFinalClassFound">
<exclude-pattern>*/inc/*</exclude-pattern>
</rule>
</ruleset>