forked from cloudinary/cloudinary_wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
36 lines (28 loc) · 1.2 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="WordPress coding standards">
<!-- Check for cross-version support for PHP 5.6 and higher. -->
<config name="testVersion" value="5.6-"/>
<config name="ignore_warnings_on_exit" value="1" /><!-- Ignore warnings for now. -->
<file>.</file><!-- Lint all PHP files by default. -->
<arg name="basepath" value="." /><!-- Show file paths relative to the project root. -->
<arg name="extensions" value="php" />
<arg name="colors" />
<arg value="s" /><!-- Show sniff codes in all reports. -->
<!-- Includes WordPress-Core, WordPress-Docs and WordPress-Extra rulesets. -->
<rule ref="WordPress" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="cloudinary" />
</properties>
</rule>
<rule ref="Generic.Commenting.DocComment.LongNotCapital">
<exclude-pattern>php/class-cli.php</exclude-pattern>
<exclude-pattern>php/traits/trait-cli.php</exclude-pattern>
</rule>
<!-- Include WP VIP coding standard checks -->
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPressVIPMinimum" />
<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/build/</exclude-pattern>
</ruleset>