-
Notifications
You must be signed in to change notification settings - Fork 11
/
phpcs.xml.dist
82 lines (67 loc) · 2.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0"?>
<ruleset name="Bulk Move">
<description>Bulk Move coding standard</description>
<!-- Show progress and sniff codes in all reports -->
<arg value="ps"/>
<file>./</file>
<!-- Non code directories -->
<exclude-pattern>code-coverage/*</exclude-pattern>
<exclude-pattern>dist/*</exclude-pattern>
<exclude-pattern>docs/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>Gruntfile.js</exclude-pattern>
<!-- 3rd Party provided libraries -->
<exclude-pattern>include/libraries/*</exclude-pattern>
<!-- Compiled and Vendor-provided assets -->
<exclude-pattern>assets/css/vendor/*</exclude-pattern>
<exclude-pattern>assets/css/*.min.css</exclude-pattern>
<exclude-pattern>assets/js/vendor/*</exclude-pattern>
<exclude-pattern>assets/js/*.min.js</exclude-pattern>
<!-- PHP Compatibility -->
<config name="testVersion" value="5.6-"/>
<rule ref="PHPCompatibilityWP">
</rule>
<!--Code-->
<rule ref="WordPress-Extra">
<!-- Exclude suggestion to use esc_html__() instead of _e() -->
<exclude name="WordPress.Security.EscapeOutput.UnsafePrintingFunction"/>
<!-- Allow File names with psr-2 structure -->
<exclude name="Generic.Files.LowercasedFilename.NotFound"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>
<!--Docs-->
<rule ref="WordPress-Docs">
<!-- Since we are using namespace, no need to include package -->
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
</rule>
<!-- Properties -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="bulk-move" />
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="bm,BM,BulkWP,BulkMove,bulk_move" />
</properties>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride">
<properties>
<property name="custom_test_class_whitelist" type="array" value="WPCoreUnitTestCase" />
</properties>
</rule>
<rule ref="WordPress.Files.FileName">
<exclude-pattern>tests/*</exclude-pattern>
<properties>
<property name="strict_class_file_names" value="false" />
</properties>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property name="customAutoEscapedFunctions" type="array" value="__" />
</properties>
</rule>
</ruleset>