-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml.dist
39 lines (27 loc) · 1.51 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
<?xml version="1.0"?>
<ruleset name="WordPress Pay Gravity Forms rules">
<file>.</file>
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>tests/wp-config.php</exclude-pattern>
<exclude-pattern type="relative">^build/*</exclude-pattern>
<exclude-pattern type="relative">^node_modules/*</exclude-pattern>
<exclude-pattern type="relative">^packages/*</exclude-pattern>
<exclude-pattern type="relative">^vendor/*</exclude-pattern>
<exclude-pattern type="relative">^wordpress/*</exclude-pattern>
<exclude-pattern type="relative">^wp-content/*</exclude-pattern>
<rule ref="PronamicWP">
<exclude name="Squiz.Commenting" />
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_key" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query" />
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize" />
<exclude name="WordPress.Security.SafeRedirect.wp_redirect_wp_redirect" />
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited" />
<exclude name="WordPressVIPMinimum.Performance.FetchingRemoteData.FileGetContentsUnknown" />
<exclude name="WordPressVIPMinimum.Security.PHPFilterFunctions.MissingThirdParameter" />
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride.OverrideProhibited">
<exclude-pattern>views/html-admin-feed-settings.php</exclude-pattern>
</rule>
</ruleset>