This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
52 lines (42 loc) · 1.49 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="POC">
<description>These rules generate different output depending on what they are run against.</description>
<!-- Start scanning from project root. -->
<file>./</file>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>vendor/*</exclude-pattern>
<!--
=======================================
Define CLI args PHPCS should run with.
=======================================
-->
<!-- Show colors in console. -->
<arg value="-colors"/>
<!--
p flag: Show progress of the run.
s flag: Show the name of the rule violated in reports.
-->
<arg value="ps"/>
<!--
===========================
Define rulesets to enforce.
===========================
-->
<!-- Include the WordPress-Extra standard. -->
<rule ref="WordPress-Extra">
<!--
For a list of configurable rules included by WordPress Coding Standards
see here: https://git.io/fx0T4
-->
<!-- Allow spaces instead of tabs. -->
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
</rule>
<rule ref="Generic.Commenting.Todo"/>
<!-- THIS IS THE RULE THAT IS HAS ISSUES -->
<rule ref="WordPress.WhiteSpace.PrecisionAlignment">
<properties>
<!-- Allow Precision Alignment in HTML and Comments. -->
<property name="ignoreAlignmentTokens" type="array" value="T_COMMENT,T_INLINE_HTML"/>
</properties>
</rule>
</ruleset>