-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
45 lines (39 loc) · 1.32 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="MJJ WP Interacitivy Sniffs">
<arg name="extensions" value="php" />
<arg name="colors" />
<arg name="parallel" value="16" />
<arg value="sp" />
<!-- Include -->
<file>./includes</file>
<file>./src/blocks</file>
<file>./plugin.php</file>
<!-- Exclude -->
<exclude-pattern>node_modules</exclude-pattern>
<exclude-pattern>build</exclude-pattern>
<exclude-pattern>vendor</exclude-pattern>
<!-- Ensure all code works with PHP 8.2 and above. -->
<rule ref="PHPCompatibilityWP" />
<config name="testVersion" value="8.2-" />
<rule ref="WordPress-Core">
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
</rule>
<!-- Force short array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found">
<type>warning</type>
</rule>
<rule ref="WordPress" />
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="tharsheblows-alphabet-guess" />
</property>
</properties>
</rule>
</ruleset>