-
Notifications
You must be signed in to change notification settings - Fork 26
/
phpcs.ruleset.xml
52 lines (43 loc) · 1.49 KB
/
phpcs.ruleset.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<!-- Only sniff PHP files -->
<arg name="extensions" value="php"/>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="Squiz.PHP.CommentedOutCode">
<exclude name="Squiz.PHP.CommentedOutCode.Found" />
</rule>
<rule ref="Generic.PHP.NoSilencedErrors">
<exclude name="Generic.PHP.NoSilencedErrors.Discouraged" />
</rule>
<rule ref="WordPress.PHP.NoSilencedErrors">
<properties>
<property name="customAllowedFunctionsList" type="array" value="ini_get,exif_read_data,ob_end_flush"/>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName">
<properties>
<property name="allowed_custom_properties" type="array" value="formatOutput,imgQuality,parentNode,nextSibling,documentElement,imagePath,webimagePath,thumbPath,fileName,Version,Name" />
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="ewww-image-optimizer"/>
</property>
</properties>
</rule>
<config name="testVersion">7.4-</config>
<rule ref="PHPCompatibilityWP">
<severity>10</severity>
</rule>
<rule ref="WordPress.Security">
<severity>10</severity>
</rule>
<rule ref="WordPress.DB.PreparedSQL">
<severity>10</severity>
</rule>
</ruleset>