forked from alleyinteractive/apple-news
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
49 lines (41 loc) · 1.09 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
46
47
48
49
<?xml version="1.0"?>
<ruleset name="Publish to Apple News">
<description>PHP_CodeSniffer standard for Publish to Apple News.</description>
<!--
Pass some flags to PHPCS:
p flag: Show progress of the run.
s flag: Show sniff codes in all reports.
-->
<arg value="ps" />
<!--
Colorize output
-->
<arg name="colors"/>
<!--
Shorten paths in output
-->
<arg name="basepath" value="."/>
<!--
Parallelize execution of tests
-->
<arg name="parallel" value="50"/>
<!--
Only check the PHP files.
Check all files in this directory and the directories below it.
Exclude a few directories and autogenerated files.
-->
<arg name="extensions" value="php" />
<file>.</file>
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<rule ref="WordPress" />
<rule ref="WordPress.WP.I18n">
<properties>
<!--
Verify that the text_domain is set to the desired text-domain.
Multiple valid text domains can be provided as a comma-delimited list.
-->
<property name="text_domain" type="array" value="apple-news" />
</properties>
</rule>
</ruleset>