-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
28 lines (21 loc) · 1.06 KB
/
phpcs.xml.dist
File metadata and controls
28 lines (21 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
<?xml version="1.0"?>
<ruleset name="Read Offline Plugin">
<description>Project coding standards for the Read Offline plugin.</description>
<!-- Scan these paths -->
<file>read-offline.php</file>
<file>includes</file>
<!-- Ignore third-party code -->
<exclude-pattern>vendor/*</exclude-pattern>
<!-- Limit to PHP files -->
<arg name="extensions" value="php"/>
<!-- Use WordPress Coding Standards -->
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra"/>
<!-- Tuning: allow short array syntax; keep arrays flexible on trailing comma. -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<exclude name="NormalizedArrays.Arrays.CommaAfterLast.MissingMultiLine"/>
<!-- Optional: reduce noise for nonce verification on admin views (we validate actions elsewhere). Comment out to re-enable. -->
<!-- <exclude name="WordPress.Security.NonceVerification.Recommended"/> -->
<!-- Show sniff codes in reports for clarity (omitted due to local flag parsing). -->
</ruleset>