-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathphpcs.xml
More file actions
60 lines (50 loc) · 1.69 KB
/
phpcs.xml
File metadata and controls
60 lines (50 loc) · 1.69 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>
<ruleset name="Webmention">
<description>WordPress Webmention Coding Standards</description>
<!-- What to scan -->
<file>./webmention.php</file>
<file>./includes/</file>
<!-- Exclude patterns -->
<exclude-pattern>\.git/*</exclude-pattern>
<exclude-pattern>\.github/*</exclude-pattern>
<exclude-pattern>\.vscode/*</exclude-pattern>
<exclude-pattern>\.idea/*</exclude-pattern>
<exclude-pattern>\.wordpress-org/*</exclude-pattern>
<exclude-pattern>*\.(inc|css|js|svg)</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<!-- How to scan -->
<arg value="sp"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="50"/>
<!-- Rules: Check PHP Compatibility -->
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.2-"/>
<!-- Rules: WordPress Coding Standards -->
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Extra"/>
<rule ref="PHPCompatibilityWP"/>
<config name="minimum_wp_version" value="6.2"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="webmention"/>
<element value="default"/>
</property>
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions"/>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
</properties>
</rule>
<!-- Relax some rules -->
<rule ref="WordPress.Security">
<exclude name="WordPress.Security.ValidatedSanitizedInput"/>
<exclude name="WordPress.Security.NonceVerification"/>
<exclude name="WordPress.Security.EscapeOutput"/>
</rule>
</ruleset>