forked from lumenlearning/candela-utility
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathphpcs.xml
31 lines (28 loc) · 1020 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
29
30
31
<?xml version="1.0"?>
<ruleset name="Pressbooks">
<description>Pressbooks Coding Standards</description>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Do not print warnings -->
<arg value="n"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Exclude tests -->
<exclude-pattern>tests/</exclude-pattern>
<!-- Exclude symbionts -->
<exclude-pattern>symbionts/</exclude-pattern>
<!-- Exclude vendor -->
<exclude-pattern>vendor/</exclude-pattern>
<!-- Exclude themes-* -->
<exclude-pattern>themes-*/</exclude-pattern>
<!-- Dem's da rules -->
<rule ref="WordPress-Core">
<!-- Ignore method name validation for compatibility with class method. -->
<exclude name="WordPress.NamingConventions.ValidFunctionName"/>
<!-- Ignore variable name validation for compatibility with class variables. -->
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
</rule>
<rule ref="WordPress-Extra">
<exclude name="WordPress.XSS.EscapeOutput" />
</rule>
</ruleset>