/
phpcs.xml
52 lines (42 loc) · 1.77 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
<?xml version="1.0"?>
<ruleset name="Email Log">
<description>Email Log coding standard</description>
<file>./</file>
<!-- Non code directories -->
<exclude-pattern>docs/*</exclude-pattern>
<exclude-pattern>dist/*</exclude-pattern>
<exclude-pattern>code-coverage/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>test/*</exclude-pattern>
<exclude-pattern>tests/*</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>
<!--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"/>
<!-- Allow shorter array syntax -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- PHP Compatibility -->
<config name="testVersion" value="5.6-"/>
<rule ref="PHPCompatibility">
</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>
</ruleset>