-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
25 lines (20 loc) · 1.07 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
<?xml version="1.0"?>
<ruleset name="Dictator PHPCS">
<description>Dictator PHPCS rules</description>
<file>.</file>
<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="parallel" value="8"/> <!-- Enables parallel processing when available for faster results -->
<config name="testVersion" value="5.6-"/>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="WordPress">
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<!-- Following is due to using PSR-4 autoloading -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>
</ruleset>