Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
53 lines (44 loc) · 1.88 KB
/
Copy pathphpcs.xml
File metadata and controls
53 lines (44 loc) · 1.88 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
<?xml version="1.0"?>
<ruleset name="BoardScribe">
<description>WordPress coding standards for the BoardScribe plugin.</description>
<!-- Files to check -->
<file>.</file>
<!-- Only check PHP; JS/CSS have their own dedicated linters (wp-scripts lint-js, etc.) -->
<arg name="extensions" value="php"/>
<!-- Exclude non-PHP directories -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Generated build artifacts (webpack bundle output) -->
<exclude-pattern>*/assets/build/*</exclude-pattern>
<!-- Use WordPress coding standards -->
<rule ref="WordPress">
<!-- Allow short array syntax -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- includes/ uses namespaced, PSR-4-style class files, not the legacy class-*.php convention -->
<rule ref="WordPress.Files.FileName">
<exclude-pattern>*/includes/*</exclude-pattern>
</rule>
<!-- Require PHP 7.4+ -->
<config name="minimum_supported_wp_version" value="6.7"/>
<config name="testVersion" value="7.4-"/>
<!-- Plugin-specific text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="boardscribe"/>
</property>
</properties>
</rule>
<!-- Everything in the global namespace (variables in root-scope files, constants,
hooks) must carry the plugin prefix — Plugin Check enforces this too -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="edbs"/>
<element value="EqualizeDigital\BoardScribe"/>
</property>
</properties>
</rule>
</ruleset>