-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
58 lines (48 loc) · 1.61 KB
/
phpcs.xml.dist
File metadata and controls
58 lines (48 loc) · 1.61 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
51
52
53
54
55
56
57
58
<?xml version="1.0"?>
<ruleset name="WP Ability Toolkit">
<description>WordPress Coding Standards for WP Ability Toolkit</description>
<!-- Check the plugin package -->
<file>./packages/wp-ability-toolkit/includes</file>
<file>./packages/wp-ability-toolkit/wp-ability-toolkit.php</file>
<!-- Exclude vendor and build directories -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Use WordPress-Extra ruleset -->
<rule ref="WordPress-Extra">
<!-- Allow short array syntax -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Use WordPress-Docs ruleset -->
<rule ref="WordPress-Docs"/>
<!-- Enforce PSR-4 file naming for classes -->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
</properties>
</rule>
<!-- Show progress -->
<arg value="ps"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use colors in output -->
<arg name="colors"/>
<!-- Set text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="wp-ability-toolkit"/>
</property>
</properties>
</rule>
<!-- Verify that everything in the global namespace is prefixed -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="WP_Ability_Toolkit"/>
<element value="wp_ability_toolkit"/>
</property>
</properties>
</rule>
</ruleset>