-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
44 lines (36 loc) · 1.59 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
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<ruleset name="OM4 WordPress">
<description>OM4 Coding Standards for WordPress projects</description>
<!-- Define files to check -->
<file>./typekit-admin.php</file>
<file>./typekit.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" />
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag" />
<exclude name="Squiz.Commenting.FileComment.WrongStyle" />
<!-- 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" />
<!-- Set text domain to enable checking -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="typekit-fonts-for-wordpress" />
</property>
</properties>
</rule>
<!-- 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>