-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
42 lines (35 loc) · 1.4 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="Smaily for WooCommerce"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<!-- Exclude directories. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<arg name="cache" />
<arg name="parallel" value="8" />
<arg name="extensions" value="php" />
<rule ref="WordPress-Core">
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
</rule>
<!-- Add in some extra rules from other standards. -->
<rule ref="Generic.Commenting.Todo" />
<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="5.6-" />
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php$</include-pattern>
</rule>
<config name="minimum_supported_wp_version" value="4.5" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="smaily" />
</property>
</properties>
</rule>
<!-- Exclude some incorrectly named files. -->
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>/inc/*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>/inc/*</exclude-pattern>
</rule>
</ruleset>