-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
phpcs.xml
37 lines (31 loc) · 989 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
35
36
37
<?xml version="1.0"?>
<ruleset name="AntiVirus">
<description>Sniffs for the coding standards of the plugin</description>
<arg value="psvn"/>
<arg name="colors"/>
<!-- Files to sniff -->
<file>antivirus.php</file>
<file>inc</file>
<file>tests</file>
<!-- Extend from WPCS ruleset -->
<config name="minimum_supported_wp_version" value="4.1"/>
<rule ref="WordPress">
<!-- we still support PHP 5.2 -->
<exclude name="Modernize.FunctionCalls.Dirname.FileConstant"/>
</rule>
<!-- Verify i18n text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="antivirus"/>
</properties>
</rule>
<!-- Add some exceptions for the tests -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>tests</exclude-pattern>
</rule>
<!-- PHP compatibility level -->
<config name="testVersion" value="5.2-"/>
<rule ref="PHPCompatibility">
<exclude-pattern>tests</exclude-pattern>
</rule>
</ruleset>