-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpcs.xml
More file actions
24 lines (20 loc) · 779 Bytes
/
phpcs.xml
File metadata and controls
24 lines (20 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0"?>
<ruleset name="10up PHPCS">
<description>10up PHPCS extended.</description>
<!-- Scan these directories -->
<file>fixtures</file>
<file>src</file>
<file>tests</file>
<!-- Use the 10up rulset -->
<rule ref="10up-Default" />
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="declareOnFirstLine" value="false"/>
<property name="spacesCountAroundEqualsSign" value="true"/>
</properties>
</rule>
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="colors"/> <!-- Show results with colors. Disable if working on Windows -->
<arg name="basepath" value="."/> <!-- Strip the file paths down to the relevant bit -->
<arg name="extensions" value="php"/> <!-- Limit to PHP -->
</ruleset>