Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
87 lines (73 loc) · 2.72 KB
/
Copy pathphpcs.xml
File metadata and controls
87 lines (73 loc) · 2.72 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0"?>
<ruleset name="Aegis Plugin">
<description>WordPress Coding Standards for the Aegis free plugin</description>
<arg name="extensions" value="php"/>
<arg name="cache"/>
<arg name="basepath" value="./"/>
<arg name="parallel" value="20"/>
<arg value="ps"/>
<arg name="colors"/>
<ini name="memory_limit" value="512M"/>
<file>./aegis.php</file>
<file>./uninstall.php</file>
<file>./index.php</file>
<file>./src</file>
<file>./config</file>
<file>./patterns</file>
<file>./templates</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/assets/admin/build/*</exclude-pattern>
<exclude-pattern>*/assets/editor/build/*</exclude-pattern>
<exclude-pattern>*/src/Blocks/*/index.js</exclude-pattern>
<exclude-pattern>*/src/Blocks/*/view.js</exclude-pattern>
<exclude-pattern>*/src/Blocks/*/style.js</exclude-pattern>
<!-- Generated webpack / wp-scripts sidecar files. -->
<exclude-pattern>*.asset.php</exclude-pattern>
<exclude-pattern>*/src/Blocks/blocks-manifest.php</exclude-pattern>
<!-- Gate CI on errors only; warnings stay visible in reports. -->
<config name="ignore_warnings_on_exit" value="1"/>
<config name="minimum_wp_version" value="6.9"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="aegis"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="aegis"/>
</property>
</properties>
</rule>
<!-- Patterns and block render templates are included inside function scope. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound">
<exclude-pattern>*/patterns/*</exclude-pattern>
<exclude-pattern>*/src/Blocks/*/render.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride.Prohibited">
<exclude-pattern>*/patterns/*</exclude-pattern>
<exclude-pattern>*/src/Blocks/*/render.php</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment">
<exclude-pattern>*/patterns/*</exclude-pattern>
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent">
<exclude-pattern>*/patterns/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.YodaConditions.NotYoda">
<type>warning</type>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase">
<type>warning</type>
</rule>
<rule ref="WordPress.Files.FileName">
<exclude-pattern>*/src/*</exclude-pattern>
<exclude-pattern>*/patterns/woocommerce/template/taxonomy-*.php</exclude-pattern>
</rule>
</ruleset>