-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
29 lines (26 loc) · 916 Bytes
/
phpcs.xml
File metadata and controls
29 lines (26 loc) · 916 Bytes
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
<?xml version="1.0"?>
<ruleset name="Shepherd Coding Standards">
<rule ref="StellarWP">
<exclude name="StellarWP.Classes.ValidClassName.NotSnakeCase"/>
</rule>
<rule ref="WordPress-VIP-Go"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Enforce our specific plugin's text domain. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="stellarwp-shepherd" />
</properties>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- General exclusions -->
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/docs/*</exclude-pattern>
</ruleset>