-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
32 lines (25 loc) · 1.06 KB
/
phpcs.xml.dist
File metadata and controls
32 lines (25 loc) · 1.06 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
<?xml version="1.0"?>
<ruleset name="WebDecoy">
<description>WebDecoy WordPress Plugin — security checks</description>
<file>.</file>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>sdk/vendor/</exclude-pattern>
<exclude-pattern>build/</exclude-pattern>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>assets/</exclude-pattern>
<exclude-pattern>languages/</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<arg name="extensions" value="php"/>
<arg value="s"/>
<!--
This codebase uses PSR-style formatting (spaces, short arrays, Allman braces).
We enforce WordPress security and database rules only — no formatting opinions.
-->
<!-- Escaping, sanitization, nonces, validated input -->
<rule ref="WordPress.Security"/>
<!-- Proper use of $wpdb->prepare() -->
<rule ref="WordPress.DB"/>
<config name="minimum_supported_wp_version" value="5.6"/>
</ruleset>