-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
41 lines (33 loc) · 1.12 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
41 lines (33 loc) · 1.12 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
<?xml version="1.0"?>
<ruleset name="Bibliography Builder">
<description>WordPress Coding Standards for Bibliography Builder plugin</description>
<!-- Files to check -->
<file>bibliography-builder.php</file>
<!-- Exclude vendor, node_modules, and tests -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<!-- Use WordPress-Core as base -->
<rule ref="WordPress-Core"/>
<!-- WordPress-Docs -->
<rule ref="WordPress-Docs"/>
<!-- WordPress-Extra -->
<rule ref="WordPress-Extra"/>
<!-- Allow uppercase constants (WP conventions use globals) -->
<rule ref="WordPress.WP.GlobalVariablesOverride"/>
<!-- Line length -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
<!-- Custom prefix for globals -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="bibliography_builder"/>
</property>
</properties>
</rule>
</ruleset>