-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
70 lines (60 loc) · 1.74 KB
/
.phpcs.xml
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
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" ?>
<ruleset name="Supplang WordPress Plugin" namespace="WordPress\Plugin\Supplang">
<!--
Provide installation path to the WordPress Coding Standards.
-->
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
<!--
Check only files with .php extension.
-->
<arg name="extensions" value="php" />
<!--
Exclude from checking package managers directiories.
-->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!--
Disallow using a short array syntax.
-->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<type>warning</type>
</rule>
<!--
Extend WordPress Coding Standard ruleset.
-->
<rule ref="WordPress-Extra" />
<!--
Check for valid text-domains provided in the $text_domain property.
@todo Update a rule value to your project textdomain string
-->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="supplang" />
</properties>
</rule>
<!--
Check for valid prefixes in functions names.
@todo Update a rule value to your project textdomain string
-->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="supplang" />
</properties>
</rule>
<!--
Turn on theme's filenames validation.
-->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="is_plugin" value="true" />
</properties>
</rule>
<!--
Chack for usage of deprecated functions.
-->
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.0" />
</properties>
</rule>
</ruleset>