forked from Automattic/newspack-custom-content-migrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
28 lines (21 loc) · 872 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPress">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="Squiz.Commenting.ClassComment.Missing" />
</rule>
<rule ref="PHPCompatibilityWP"/>
<config name="testVersion" value="8.3"/>
<arg name="extensions" value="php"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Allow invoking just `phpcs` on command line without assuming STDIN for file input. -->
<file>src</file>
<file>tests</file>
</ruleset>