-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathphpcs.xml
More file actions
40 lines (32 loc) · 1.09 KB
/
phpcs.xml
File metadata and controls
40 lines (32 loc) · 1.09 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
<?xml version="1.0"?>
<ruleset name="WebSub/PubSubHubbub">
<description>Custom ruleset for the WebSub/PubSubHubbub plugin.</description>
<!-- What to scan -->
<file>.</file>
<!-- Exclude patterns -->
<exclude-pattern>\.git/*</exclude-pattern>
<exclude-pattern>\.github/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>\.wordpress-org/*</exclude-pattern>
<!-- How to scan -->
<arg value="ps"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<!-- PHP Compatibility -->
<config name="testVersion" value="7.2-"/>
<config name="minimum_wp_version" value="6.0"/>
<config name="text_domain" value="pubsubhubbub"/>
<!-- Rules -->
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress">
<exclude name="Universal.Operators.DisallowShortTernary"/>
</rule>
<rule ref="VariableAnalysis"/>
<!-- Allow short array syntax -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<severity>0</severity>
</rule>
</ruleset>