-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
33 lines (26 loc) · 1.26 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
<?xml version="1.0"?>
<ruleset name="Plugin Coding Standards">
<description>Enforces PHP coding standards for the plugin</description>
<config name="minimum_supported_wp_version" value="6.1" />
<arg name="extensions" value="php" />
<!-- Show sniff codes in all reports, this assists with identifying the sniffs that are causing failures and adding exclusions if needed -->
<arg value="ps" />
<!-- These rules come from the WordPress coding standards -->
<rule ref="WordPress-Extra">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
</rule>
<!-- These rules come from the PHPCompatibility coding standards -->
<config name="testVersion" value="7.4-" />
<rule ref="PHPCompatibilityWP" />
<!-- Verify that everything in the global namespace is prefixed with a plugin specific prefix. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="bbpress_allowed_shortcodes_" />
</properties>
</rule>
<!-- Define files to be checked -->
<file>includes/</file>
<file>views/</file>
<file>bbpress-allowed-shortcodes.php</file>
</ruleset>