-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
51 lines (41 loc) · 1.79 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
50
51
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="alleyinteractive/wp-alleyvate" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>PHP_CodeSniffer standard for alleyinteractive/wp-alleyvate.</description>
<file>src/</file>
<file>tests/</file>
<exclude-pattern>vendor/</exclude-pattern>
<!--
Pass some flags to PHPCS:
p flag: Show progress of the run.
s flag: Show sniff codes in all reports.
-->
<arg value="ps"/>
<!-- Use the Alley standard. -->
<rule ref="Alley-Interactive"/>
<!-- Check up to N files simultaneously. -->
<arg name="parallel" value="75"/>
<!-- Set severity to 1 to see everything that isn't effectively turned off. -->
<arg name="severity" value="1"/>
<!-- Set the allowed text domains for i18n. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="alley"/>
</properties>
</rule>
<!-- Set the allowed prefixes for functions, etc. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="Alley"/>
</properties>
</rule>
<!-- Use a test-*.php class naming convention. -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<!-- Allow PSR-4 in all test files -->
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<!-- In effect, set the minimum supported version of WordPress to the latest version. -->
<config name="minimum_supported_wp_version" value="99.0"/>
</ruleset>