forked from buddyboss/buddyboss-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
54 lines (42 loc) · 1.68 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<description>BuddyBoss Platform dev PHP_CodeSniffer ruleset.</description>
<file>src</file>
<file>bp-loader.php</file>
<!-- Exclude paths -->
<exclude-pattern>*/languages/*</exclude-pattern>
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/deprecated/*</exclude-pattern>
<exclude-pattern>*/bp-integrations/*</exclude-pattern>
<exclude-pattern>*/bp-core/classes/class-bp-phpmailer.php</exclude-pattern>
<exclude-pattern>*/bp-core/classes/class-bp-email-tokens.php</exclude-pattern>
<exclude-pattern>*/js/autocomplete/*</exclude-pattern>
<exclude-pattern>*/js-templates/*</exclude-pattern>
<exclude-pattern>awpcp_ad_listing-ajax.php</exclude-pattern>
<exclude-pattern>*/cli/*</exclude-pattern>
<!-- Third-party code -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Ensure certain file types aren't sniffed -->
<exclude-pattern>*\.(css|js)</exclude-pattern>
<arg name="colors"/>
<arg value="p"/>
<ini name="memory_limit" value="1024M"/>
<!-- Configs -->
<!-- Loads the PHP Compatibility ruleset. -->
<rule ref="PHPCompatibilityWP" />
<!-- PHP version check. -->
<config name="minimum_supported_wp_version" value="4.7" />
<config name="testVersion" value="5.6-" />
<!-- Rules -->
<rule ref="WordPress">
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query" />
<exclude name="WordPress.DB.PreparedSQL.InterpolatedNotPrepared" />
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="buddyboss" />
</properties>
</rule>
</ruleset>