-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.xml
34 lines (28 loc) · 1000 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-security">
<description>Coding standards for ft-security</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>
<!-- Use figuren.theater Coding Standards -->
<rule ref="figurentheater" />
<!-- Working with the old $phpmailer object is quite modern, so ;) -->
<rule ref="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase">
<exclude-pattern>inc/smtp/namespace\.php</exclude-pattern>
</rule>
<!-- 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="two-factor"/>
<element value="default"/>
</property>
</properties>
</rule>
</ruleset>