Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
66 lines (55 loc) · 2.04 KB
/
Copy pathphpcs.xml
File metadata and controls
66 lines (55 loc) · 2.04 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
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<ruleset name="Blockstudio">
<description>WordPress Coding Standards for Blockstudio v7</description>
<file>./blockstudio.php</file>
<file>./includes/class-plugin.php</file>
<file>./includes/classes/</file>
<file>./includes/functions/</file>
<file>./includes/interfaces/</file>
<file>./tests/theme/test-helper.php</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/_reference/*</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<rule ref="WordPress"/>
<!-- Class filenames follow Blockstudio's lowercase, hyphenated convention. -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>*</exclude-pattern>
</rule>
<!-- Existing public hooks contain hyphens and must remain compatible. -->
<rule ref="WordPress.NamingConventions.ValidHookName.UseUnderscores">
<severity>0</severity>
</rule>
<!-- Dynamic hooks are constructed from settings paths and filter names. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound">
<severity>0</severity>
</rule>
<!-- Renaming existing public parameters would break named arguments. -->
<rule ref="Universal.NamingConventions.NoReservedKeywordParameterNames">
<severity>0</severity>
</rule>
<!-- Interface and trait signatures require some unused parameters. -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<severity>0</severity>
</rule>
<config name="testVersion" value="8.2-"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="blockstudio"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="blockstudio"/>
<element value="Blockstudio"/>
</property>
</properties>
</rule>
</ruleset>