-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
50 lines (40 loc) · 1.42 KB
/
phpcs.xml
File metadata and controls
50 lines (40 loc) · 1.42 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
<?xml version="1.0"?>
<ruleset name="Your Plugin Name">
<description>WordPress Plugin Coding Standards</description>
<!-- Include WordPress Coding Standards -->
<rule ref="WordPress"/>
<!-- Include PSR-12 standards -->
<rule ref="PSR12"/>
<!-- Exclude some WordPress rules that are too strict -->
<rule ref="WordPress.Files.FileName">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<!-- Custom rules for the plugin -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="150"/>
</properties>
</rule>
<!-- Exclude vendor and test directories -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.min.css</exclude-pattern>
<!-- Include plugin directories -->
<file>includes/</file>
<file>providers/</file>
<file>admin/</file>
<file>public/</file>
<file>plugin-core.php</file>
<file>config.php</file>
<!-- Show progress -->
<arg value="p"/>
<!-- Show colors -->
<arg value="s"/>
<!-- Show source codes -->
<arg value="n"/>
<!-- Show sniff codes -->
<arg value="a"/>
</ruleset>