-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
33 lines (29 loc) · 1.18 KB
/
phpcs.xml
File metadata and controls
33 lines (29 loc) · 1.18 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
<?xml version="1.0"?>
<ruleset name="WordPress Microsub">
<description>WordPress Microsub Coding Standards</description>
<file>.</file>
<exclude-pattern>.(git|github|vscode|idea)</exclude-pattern>
<exclude-pattern>*\.(inc|css|js|svg)</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<arg value="ps"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="parallel" value="50"/>
<config name="testVersion" value="7.4-"/>
<config name="minimum_supported_wp_version" value="6.2"/>
<config name="text_domain" value="microsub,default"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress">
<exclude name="Universal.Operators.DisallowShortTernary" />
</rule>
<rule ref="VariableAnalysis">
<exclude-pattern>*/includes/class-adapter.php</exclude-pattern>
<exclude-pattern>*/includes/adapters/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<!-- Base adapter defines interface signatures; default implementations don't use params -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<exclude-pattern>*/includes/class-adapter.php</exclude-pattern>
</rule>
</ruleset>