-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
49 lines (44 loc) · 1.6 KB
/
phpcs.xml
File metadata and controls
49 lines (44 loc) · 1.6 KB
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
41
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<ruleset name="Coding standard">
<description>Coding standard for WordPress plugins</description>
<!-- Pass some flags to PHPCS:
p flag: Show progress of the run.
s flag: Show sniff codes in all reports.
v flag: Print verbose output.
n flag: Do not print warnings.
-->
<arg value="psvn"/>
<!-- use colors in output -->
<arg name="colors"/>
<!-- Scan only PHP files -->
<arg name="extensions" value="php"/>
<!-- Set files & folders-->
<file>src</file>
<file>assets</file>
<file>millicache.php</file>
<file>advanced-cache.php</file>
<exclude-pattern>*/index.php</exclude-pattern>
<exclude-pattern>src/Deps/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>lib/*</exclude-pattern>
<!-- WordPress coding standards -->
<config name="minimum_supported_wp_version" value="5.1"/>
<rule ref="WordPress-Core">
<exclude name="WordPress.Files.FileName" />
</rule>
<rule ref="WordPress">
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="millicache"/>
</property>
</properties>
</rule>
<!-- Include sniffs for PHP cross-version compatibility. -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP"/>
</ruleset>