forked from wp-media/rocket-lazy-load
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
36 lines (32 loc) · 1.78 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
32
33
34
35
36
<?xml version="1.0"?>
<ruleset name="Rocket Lazyload">
<description>Rocket LazyLoad</description>
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern>*.js</exclude-pattern>
<rule ref="WordPress">
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/ -->
<exclude name="Generic.PHP.NoSilencedErrors.Discouraged"/>
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="WordPress.VIP.AdminBarRemoval"/>
<exclude name="WordPress.VIP.CronInterval.ChangeDetected"/>
<exclude name="WordPress.VIP.DirectDatabaseQuery.DirectQuery"/>
<exclude name="WordPress.VIP.DirectDatabaseQuery.NoCaching"/>
<exclude name="WordPress.VIP.OrderByRand"/>
<exclude name="WordPress.VIP.PostsPerPage.posts_per_page"/>
<exclude name="WordPress.VIP.RestrictedFunctions"/>
<exclude name="WordPress.VIP.RestrictedFunctions.urlencode"/>
<exclude name="WordPress.VIP.RestrictedFunctions.wp_redirect"/>
<exclude name="WordPress.VIP.RestrictedVariables.cache_constraints"/>
<exclude name="WordPress.VIP.RestrictedVariables.user_meta"/>
<exclude name="WordPress.VIP.SlowDBQuery.slow_db_query"/>
<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected"/>
<exclude name="WordPress.VIP.TimezoneChange"/>
<exclude name="WordPress.VIP.ValidatedSanitizedInput"/>
<exclude name="WordPress.XSS.EscapeOutput"/>
</rule>
</ruleset>