-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
39 lines (33 loc) · 1.2 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
39 lines (33 loc) · 1.2 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
<?xml version="1.0"?>
<ruleset name="Silver Liquid Dev">
<description>WordPress coding standards for the Silver Liquid Dev theme.</description>
<!-- Scan the theme source only. -->
<file>src</file>
<!-- Show progress and use colors. -->
<arg value="ps"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<rule ref="WordPress"/>
<!-- Theme metadata for the relevant sniffs. -->
<config name="minimum_wp_version" value="6.5"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="silver-liquid-dev"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="silver_liquid_dev"/>
<element value="SILVER_LIQUID_DEV"/>
<element value="silverLiquidDev"/>
</property>
</properties>
<!-- Template files run in the global scope; their loop/local iterator
variables ($category, $cats, …) are not theme-defined globals.
Keep prefix enforcement for functions, constants, and hooks. -->
<exclude name="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound"/>
</rule>
</ruleset>