-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
32 lines (25 loc) · 1.15 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset name="OM4 WordPress">
<description>OM4 Coding Standards for WordPress projects</description>
<!-- Define files to check -->
<file>./log-out-shortcode.php</file>
<!-- command-line config -->
<arg name="extensions" value="php" />
<!-- Include all rules from WordPress standard -->
<rule ref="WordPress">
<!-- Ignore filename check -->
<exclude name="WordPress.Files.FileName" />
<!-- Remove specific commenting rules -->
<exclude name="Squiz.Commenting.FileComment.Missing" />
<!-- Do not report exception arguments -->
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
<!-- Leave TODO items alone -->
<exclude name="Generic.Commenting.Todo.TaskFound" />
</rule>
<!-- Set supported WP version same as the plugin itself -->
<config name="minimum_supported_wp_version" value="6.0" />
<!-- Include all rules from phpcompatibility/phpcompatibility-wp -->
<rule ref="PHPCompatibilityWP" />
<!-- Set supported PHP version same as the plugin itself -->
<config name="testVersion" value="5.6-" />
</ruleset>