-
Notifications
You must be signed in to change notification settings - Fork 116
/
phpcs.xml.dist
28 lines (22 loc) · 1017 Bytes
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for WP Stream">
<config name="ignore_warnings_on_exit" value="1" /><!-- FIXME -->
<arg name="extensions" value="php" />
<arg name="colors" />
<arg value="sp" /><!-- Show sniff codes in all reports and progress. -->
<rule ref="PHPCompatibilityWP" />
<config name="testVersion" value="7.0-" /><!-- Test for PHP compatibility for 7.0 and above. -->
<rule ref="WordPress-Docs">
<type>warning</type><!-- FIXME Report but ignore for now. -->
</rule>
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Core">
<exclude name="WordPress.Security.EscapeOutput.DeprecatedWhitelistCommentFound" /><!-- TODO: Change these to phpcs:ignore -->
</rule>
<exclude-pattern>*.ruleset</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/local/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
</ruleset>