-
Notifications
You must be signed in to change notification settings - Fork 13
/
phpcs.xml.dist
32 lines (26 loc) · 1.06 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
31
32
<?xml version="1.0"?>
<ruleset name="PHP coding standards for Widget Context">
<config name="ignore_warnings_on_exit" value="1" />
<arg name="extensions" value="php" />
<arg name="colors" />
<arg value="s" /><!-- Show sniff codes in all reports. -->
<arg value="p" /><!-- Show progress. -->
<file>.</file>
<rule ref="PHPCompatibility" />
<config name="testVersion" value="5.6-" />
<rule ref="WordPress-Core">
<exclude name="WordPress.Files.FileName" /><!-- We'll be switching to PSR-4 naming soon. -->
<exclude name="Generic.Formatting.MultipleStatementAlignment" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment" />
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" /><!-- For legacy reasons. -->
<exclude name="Squiz.Scope.MethodScope.Missing" /><!-- TODO: fix this. -->
</rule>
<!--
<rule ref="WordPress-Docs">
<exclude name="Squiz.Commenting.FileComment" />
</rule>
-->
<exclude-pattern>/node_modules</exclude-pattern>
<exclude-pattern>/vendor</exclude-pattern>
<exclude-pattern>/dist</exclude-pattern>
</ruleset>