forked from xwp/stream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
30 lines (24 loc) · 1.09 KB
/
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
29
30
<?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="5.6-" /><!-- Test for PHP compatibility for 5.6 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>*/includes/lib/*</exclude-pattern>
<exclude-pattern>*/ui/lib/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/local/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
</ruleset>