-
Notifications
You must be signed in to change notification settings - Fork 14
/
phpcs.xml.dist
36 lines (27 loc) · 1.64 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
<?xml version="1.0"?>
<ruleset name="Pronamic Google Maps">
<file>.</file>
<exclude-pattern type="relative">^build/*</exclude-pattern>
<exclude-pattern type="relative">^node_modules/*</exclude-pattern>
<exclude-pattern type="relative">^src/changelog-md/*</exclude-pattern>
<exclude-pattern type="relative">^src/readme-md/*</exclude-pattern>
<exclude-pattern type="relative">^src/readme-txt/*</exclude-pattern>
<exclude-pattern type="relative">^vendor/*</exclude-pattern>
<rule ref="PronamicWP">
<exclude name="Generic.Files.LowercasedFilename.NotFound" />
<exclude name="Squiz.Commenting" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
<exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
<exclude name="WordPress.PHP.DiscouragedFunctions.DiscouragedWithAlternative" />
<!-- The wp_remote_get() function is used to geocode addresses using the Google Maps API. -->
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get" />
<!-- Meta queries are used by the geocoder feature. -->
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query" />
<!-- Direct database queries are used by the uninstall feature. -->
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
</rule>
</ruleset>