-
Notifications
You must be signed in to change notification settings - Fork 40
/
phpcs.xml
31 lines (27 loc) · 1.11 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
<?xml version="1.0"?>
<ruleset name="DCDC_WordPress">
<description>WordPress Coding Standards</description>
<!-- Use WordPress as a base -->
<rule ref="WordPress">
<!-- Allow: while ( have_posts() ) : the_post(); -->
<exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace"/>
<!-- Disable overly picky rules -->
<exclude name="WordPress.WP.CapitalPDangit"/>
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize"/>
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize"/>
<!-- Allow function( 'something', array(
'something',
) ); -->
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
</rule>
<!-- Add custom sanitizing function(s). -->
<rule ref="WordPress.Security.ValidatedSanitizedInput">
<properties>
<property name="customSanitizingFunctions" type="array">
<element value="sanitize_update_auth_users" />
</property>
</properties>
</rule>
</ruleset>