-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
45 lines (39 loc) · 1.52 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
41
42
43
44
45
<?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"/>
<!-- ignore vendor files-->
<file>inc</file>
<file>views</file>
<file>extended-evaluation-for-statify.php</file>
<exclude-pattern>index.php</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<!-- WordPress coding standards -->
<config name="minimum_supported_wp_version" value="4.4" />
<rule ref="WordPress">
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page_posts_per_page" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride.Prohibited">
<exclude-pattern>content.php</exclude-pattern>
<exclude-pattern>dashboard.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="extended-evaluation-for-statify" />
</properties>
</rule>
<!-- Include sniffs for PHP cross-version compatibility. -->
<config name="testVersion" value="5.4-"/>
<rule ref="PHPCompatibility"/>
</ruleset>