-
Notifications
You must be signed in to change notification settings - Fork 50
/
phpcs.xml
41 lines (34 loc) · 1.53 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
35
36
37
38
39
40
<?xml version="1.0"?>
<ruleset name="global_media">
<description>
Rules for the Multisite Global Media project, a WordPress Multisite plugin.
</description>
<!-- Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- Display process. -->
<arg value="sp"/>
<!-- Use colors on output. -->
<arg name="colors"/>
<!-- Use only php files. -->
<arg name="extensions" value="php"/>
<file>multisite-global-media.php</file>
<file>./src</file>
<!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="7.0-"/>
<!-- Rules: WordPress Coding Standards -->
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards -->
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
<config name="minimum_supported_wp_version" value="5.0"/>
<!-- Code Reviews Rules -->
<rule ref="Inpsyde">
<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected"/>
<exclude name="Inpsyde.CodeQuality.LineLength.TooLong"/>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>./tests/php/bootstrap.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="multisite-global-media"/>
</properties>
</rule>
</ruleset>