-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathphpcs.xml
More file actions
33 lines (27 loc) · 1.01 KB
/
phpcs.xml
File metadata and controls
33 lines (27 loc) · 1.01 KB
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="Project Rules">
<!-- Include all files -->
<file>.</file>
<!-- Use the 10up ruleset -->
<rule ref="10up-Default">
<exclude name="WordPress.Security.NonceVerification.Missing" />
<exclude name="WordPress.Security.NonceVerification.Recommended" />
<exclude name="WordPress.Security.ValidatedSanitizedInput.MissingUnslash" />
</rule>
<!-- Don't scan these directories -->
<exclude-pattern>.git</exclude-pattern>
<exclude-pattern>.github</exclude-pattern>
<exclude-pattern>.husky</exclude-pattern>
<exclude-pattern>assets</exclude-pattern>
<exclude-pattern>dist</exclude-pattern>
<exclude-pattern>node_modules</exclude-pattern>
<exclude-pattern>vendor</exclude-pattern>
<!-- Show sniff and progress -->
<arg value="sp"/>
<!-- Show results with colors. Disable if working on Windows -->
<arg name="colors"/>
<!-- Strip the file paths down to the relevant bit -->
<arg name="basepath" value="."/>
<!-- Limit to PHP -->
<arg name="extensions" value="php"/>
</ruleset>