-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.phpcs.xml.dist
25 lines (23 loc) · 871 Bytes
/
.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
<?xml version="1.0"?>
<ruleset name="WPBTS">
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="-/" />
</properties>
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<properties>
<property name="skipIfInheritdoc" value="true" />
</properties>
</rule>
<rule ref="WordPress">
<!-- I made this entire scaffold just to get rid of this rule -->
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<!-- Exclude long array syntax requirement -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
<exclude name="Squiz.Commenting.VariableComment" />
<!-- Exclude WordPress class file name conveitions -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
</rule>
</ruleset>