Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
41 lines (34 loc) · 1.45 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
41 lines (34 loc) · 1.45 KB
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
<?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.4-" /><!-- Test for PHP compatibility for 7.4 and above. -->
<rule ref="WordPress-Docs">
<type>warning</type><!-- FIXME Report but ignore for now. -->
<!-- Native property types replace @var, so MissingVar would flag every typed property. -->
<exclude name="Squiz.Commenting.VariableComment.MissingVar" />
</rule>
<rule ref="WordPress-Extra">
<!-- PHPCS 3.12+ deprecated this sniff; PHPCompatibility already covers the check. -->
<exclude name="Generic.Functions.CallTimePassByReference" />
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="view_stream" />
</property>
</properties>
</rule>
<rule ref="WordPress-Core" />
<exclude-pattern>*.ruleset</exclude-pattern>
<exclude-pattern>*/.ai/*</exclude-pattern>
<exclude-pattern>*/artifacts/*</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>