-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.ruleset.xml
33 lines (27 loc) · 1.26 KB
/
phpcs.ruleset.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
<?xml version="1.0"?>
<ruleset name="WSUWP Plugins">
<!-- Config flags for PHPCS
s flag: Show sniff codes in all reports.
v flag: Print verbose output.
-->
<arg value="sv"/>
<!-- Use a more colorful output -->
<arg name="colors" />
<!-- Check only PHP files -->
<arg name="extensions" value="php"/>
<!-- Check all files in this directory and the directories below it. -->
<file>.</file>
<description>Sniffs for PHP coding standards used by WSUWP Plugins</description>
<rule ref="WordPress-Extra">
<exclude name="WordPress.NamingConventions.ValidFunctionName" />
<exclude name="WordPress.Files.FileName" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
<exclude name="Squiz.PHP.EmbeddedPhp.NoSemicolon" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterEnd" />
<exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace" />
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
</rule>
</ruleset>