-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy path.phpcs.xml
More file actions
41 lines (34 loc) · 1.71 KB
/
Copy path.phpcs.xml
File metadata and controls
41 lines (34 loc) · 1.71 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
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<ruleset name="Query Filter Coding Standards">
<description>Human Made Coding Standards</description>
<!-- What to scan -->
<file>./inc/</file>
<file>./src/</file>
<file>query-filter.php</file>
<exclude-pattern>./build/</exclude-pattern>
<exclude-pattern>./vendor/</exclude-pattern>
<!-- How to scan -->
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="colors"/> <!-- Show results with colors (disable if working on Windows). -->
<arg name="basepath" value="."/> <!-- Show paths as the relevant relative path. -->
<arg name="parallel" value="8"/> <!-- Enables parallel processing when available. -->
<!-- Support recent versions of WordPress. -->
<config name="minimum_supported_wp_version" value="6.8"/>
<!-- Human Made Coding Standards -->
<rule ref="HM">
<!-- These stylistic-only rules are disabled temporarily and should be fixed in follow-up. -->
<exclude name="PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon" />
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing" />
<exclude name="Squiz.Commenting" />
<exclude name="Squiz.Strings.ConcatenationSpacing" />
<exclude name="Generic.Commenting" />
<exclude name="Squiz.Commenting.FileComment.Missing" />
<exclude name="NormalizedArrays.Arrays.ArrayBraceSpacing" />
<!-- Requiring inline tags to be on newlines makes render.php partials harder to read. -->
<exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen" />
<exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterEnd" />
</rule>
<rule ref="HM.Files.NamespaceDirectoryName.NoIncDirectory">
<exclude-pattern>query-filter.php</exclude-pattern>
</rule>
</ruleset>