-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
54 lines (44 loc) · 1.94 KB
/
phpcs.xml
File metadata and controls
54 lines (44 loc) · 1.94 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
<?xml version="1.0"?>
<!-- Pierre's PHPCS configuration - he follows WordPress standards! 🪨 -->
<ruleset name="Pierre WordPress Coding Standards">
<description>WordPress Coding Standards for Pierre Plugin</description>
<!-- Pierre includes WordPress standards! 🪨 -->
<rule ref="WordPress"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<!-- Pierre's file paths! 🪨 -->
<file>wp-pierre.php</file>
<file>src/</file>
<file>tests/</file>
<!-- Pierre excludes these paths! 🪨 -->
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>assets/</exclude-pattern>
<exclude-pattern>templates/</exclude-pattern>
<!-- Pierre's specific rules! 🪨 -->
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
<properties>
<property name="blank_line_check" value="true"/>
</properties>
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
</properties>
</rule>
<!-- Pierre allows short array syntax! 🪨 -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax"/>
<!-- Pierre's error reporting! 🪨 -->
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.DisallowAlternativePHPTags"/>
<!-- Pierre's security rules! 🪨 -->
<rule ref="WordPress.Security.EscapeOutput"/>
<rule ref="WordPress.Security.NonceVerification"/>
<rule ref="WordPress.Security.ValidatedSanitizedInput"/>
<!-- Pierre's naming conventions! 🪨 -->
<rule ref="WordPress.NamingConventions.ValidFunctionName"/>
<rule ref="WordPress.NamingConventions.ValidVariableName"/>
<rule ref="WordPress.NamingConventions.ValidHookName"/>
<!-- Pierre's PHP version! 🪨 -->
<config name="minimum_supported_wp_version" value="6.0"/>
<config name="testVersion" value="8.3"/>
</ruleset>