-
Notifications
You must be signed in to change notification settings - Fork 22
/
phpcs.xml.dist
32 lines (28 loc) · 1.36 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
26
27
28
29
30
31
32
<?xml version="1.0"?>
<ruleset name="Delicious Brains">
<!-- Files or directories to check -->
<file>.</file>
<!-- Exclude the keys file as this is auto-generated from the WordPress generator -->
<exclude-pattern type="relative-root">^/config/keys.php</exclude-pattern>
<!-- Path to strip from the front of file paths inside reports (displays shorter paths) -->
<arg name="basepath" value="." />
<!-- Use HM Coding Standards -->
<rule ref="vendor/humanmade/coding-standards">
<!-- Namespace isn't required for all files. -->
<exclude name="HM.Functions.NamespacedFunctions.MissingNamespace" />
<!-- Ignore rule expecting Namespaced directory. -->
<exclude name="HM.Files.NamespaceDirectoryName.NoIncDirectory" />
<!-- File name and class name match is not necessary. -->
<exclude name="HM.Files.ClassFileName.MismatchedName" />
<!-- Ignore class file name rule -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<!-- Ignore rule expecting hyphens in file name. -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<!-- Don't require file comment header. -->
<exclude name="Squiz.Commenting.FileComment.Missing" />
</rule>
<!-- Ignore Snake case variables for tests -->
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
</ruleset>