forked from WebDevStudios/wd_s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
29 lines (23 loc) · 1.19 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
<?xml version="1.0"?>
<ruleset name="WebDevStudios">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
<!-- Set a description for this ruleset. -->
<description>A custom ruleset to take in account both WordPress and WebDevStudios code standards.</description>
<!-- Include the WordPress-Extra ruleset, with some WDS exclusions. -->
<rule ref="WordPress-Extra">
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeKeyFound" />
</rule>
<!-- Include WordPress-Docs -->
<rule ref="WordPress-Docs"/>
<!-- Doc block alignments -->
<rule ref="Squiz.Commenting.DocCommentAlignment" />
<!-- In some cases this isn't possible to catch -->
<rule ref="Squiz.PHP.DisallowMultipleAssignments.Found">
<severity>0</severity>
</rule>
</ruleset>