-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.phpcs.xml
More file actions
20 lines (17 loc) · 813 Bytes
/
.phpcs.xml
File metadata and controls
20 lines (17 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<ruleset name="WPForms Coding Standards package rules">
<description>The rules for WPForms Coding Standards package.</description>
<exclude-pattern>WPForms/Tests/TestFiles/*</exclude-pattern>
<arg value="sp"/><!-- Show sniff and progress -->
<arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
<arg name="extensions" value="php"/>
<arg name="parallel" value="12"/><!-- Enables parallel processing when available for faster results. -->
<rule ref="WPForms"/>
<rule ref="WordPress">
<exclude name="WordPress.NamingConventions"/>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName">
<exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName"/>
</ruleset>