-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
38 lines (32 loc) · 1.22 KB
/
phpcs.xml.dist
File metadata and controls
38 lines (32 loc) · 1.22 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
<?xml version="1.0"?>
<ruleset name="WordPress Plugin Coding Standards">
<description>A custom set of rules to check for a WordPress plugin</description>
<!-- What to scan -->
<file>.</file>
<exclude-pattern>/build/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<!-- How to scan -->
<arg value="sp"/><!-- Set -s to include sniff rules in report and -p to enable progress reporting. -->
<arg name="basepath" value="."/><!-- Report file paths relative to the current directory. -->
<arg name="colors"/>
<arg name="extensions" value="php"/><!-- Scan only PHP files. -->
<!-- Rules: WordPress Coding Standards -->
<rule ref="WordPress" />
<!-- Ensure that all variables in global context start with this prefix -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="multi_block_starter"/>
</property>
</properties>
</rule>
<!-- Ensure that all text-domains use our custom value. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="multi-block-starter"/>
</property>
</properties>
</rule>
</ruleset>