-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
37 lines (31 loc) · 1.26 KB
/
phpcs.xml
File metadata and controls
37 lines (31 loc) · 1.26 KB
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
<?xml version="1.0"?>
<ruleset name="WPVDB Scripts">
<description>PHP coding standards for WPVDB automation scripts.</description>
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-VIP-Go">
<exclude name="WordPressVIPMinimum.JS" />
</rule>
<rule ref="WordPress">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Operators.DisallowStandalonePostIncrementDecrement.PostIncrementFound" />
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>*/tests/Unit/*Test.php</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>*/tests/Unit/*Test.php</exclude-pattern>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="PHPCompatibilityWP"/>
<config name="testVersion" value="8.3-"/>
<arg name="extensions" value="php"/>
<arg value="s"/>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/.github/*</exclude-pattern>
<exclude-pattern>*/tests/bootstrap.php</exclude-pattern>
<file>scripts</file>
<file>tests/Unit</file>
</ruleset>