-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
48 lines (39 loc) · 1.82 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
48 lines (39 loc) · 1.82 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
<?xml version="1.0"?>
<ruleset name="Wp Field Kit">
<description>Defect-hunting sniffs. Preferences live in phpcs-format.xml.dist.</description>
<file>src</file>
<!--
bin/verify-docs.php ships. Ten libraries run it out of their vendor
directory, so it reaches every plugin built on the kit, and it is held
to the same standard as src/ for exactly that reason.
-->
<file>bin</file>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<config name="testVersion" value="8.3-"/>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility,vendor/phpcompatibility/phpcompatibility-paragonie,vendor/phpcompatibility/phpcompatibility-wp,vendor/phpcsstandards/phpcsutils,vendor/phpcsstandards/phpcsextra"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress.Security"/>
<rule ref="WordPress.DB"/>
<rule ref="WordPress.WP.I18n"/>
<!--
No runtime code interpreter, anywhere that ships. It is a construct
WordPress security scanners report on sight, and a plugin's vendor
directory does get scanned: by WordPress.org on submission, and by
security plugins on the live site. The sniff is only a warning by
default, and a warning does not fail CI.
-->
<rule ref="WordPress.Security.EscapeOutput">
<!--
bin/ is a command line program. It writes to a terminal, not to a
page, and esc_html() on a report line would print entities where
the operator expects text. Everything it prints is a file path or
a key out of the documentation it was pointed at.
-->
<exclude-pattern>bin/*</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.Eval">
<type>error</type>
</rule>
</ruleset>