forked from claudiosanches/woocommerce-pagarme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
25 lines (22 loc) · 1.16 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
<!-- Set a description for this ruleset. -->
<description>A custom set of code standard rules to check for WordPress plugins.</description>
<!-- Include the WordPress ruleset, with exclusions. -->
<rule ref="WordPress">
<exclude name="Generic.PHP.NoSilencedErrors.Discouraged" />
<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" />
<exclude name="WordPress.PHP.DiscouragedFunctions.Discouraged" />
<exclude name="WordPress.VIP.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.VIP.DirectDatabaseQuery.NoCaching" />
<exclude name="WordPress.VIP.RestrictedFunctions.error_log" />
<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected" />
</rule>
<exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>assets</exclude-pattern>
<rule ref="WordPress.Security.EscapeOutput">
<exclude-pattern>bin/bash.php</exclude-pattern>
</rule>
</ruleset>