-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathphpcs.xml.dist
41 lines (30 loc) · 1.3 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
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<ruleset name="MashShare Coding Standards">
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<exclude-pattern>/vendor/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="basepath" value="/"/>
<arg name="colors"/>
<arg name="parallel" value="8"/>
<arg value="sp"/>
<rule ref="Generic.ControlStructures.DisallowYodaConditions.Found">
<severity>3</severity>
<type>warning</type>
</rule>
<config name="testVersion" value="5.6-"/>
<rule ref="PHPCompatibility">
<include-pattern>*\.php$</include-pattern>
</rule>
<rule ref="./vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/EscapeOutputSniff.php">
<include-pattern>*\.php$</include-pattern>
</rule>
<rule ref="./vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/ValidatedSanitizedInputSniff.php">
<include-pattern>*\.php$</include-pattern>
</rule>
<rule ref="./vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/NonceVerificationSniff.php">
<include-pattern>*\.php$</include-pattern>
</rule>
<rule ref="./vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/SafeRedirectSniff.php">
<include-pattern>*\.php$</include-pattern>
</rule>
</ruleset>