-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.xml.dist
33 lines (26 loc) · 1.04 KB
/
.phpcs.xml.dist
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="Coding standards for stellarwp/admin-notice">
<!--
Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage
Annotated ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
-->
<!-- What to scan: -->
<file>./src</file>
<file>./tests</file>
<!-- What to ignore: -->
<exclude-pattern>./tests/coverage</exclude-pattern>
<!-- Show progresss & use colors. -->
<arg value="sp"/>
<arg name="colors"/>
<!-- Enables parallel processing when available for faster results. -->
<arg name="parallel" value="8"/>
<!-- Strip the file paths down to the relevant bit and only apply to .php files. -->
<arg name="basepath" value="./"/>
<arg name="extensions" value="php"/>
<!-- Include the StellarWP standards. -->
<rule ref="StellarWP" />
<!-- We don't need to worry about nonces in tests. -->
<rule ref="WordPress.Security.NonceVerification">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>