-
Notifications
You must be signed in to change notification settings - Fork 9
/
phpcs.xml
51 lines (41 loc) · 1.61 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
45
46
47
48
49
50
51
<?xml version="1.0"?>
<ruleset name="WooCommerce Coding Standards">
<description>Pinterest for WooCommerce ruleset.</description>
<!-- Οnly files with a php extension -->
<arg name="extensions" value="php" />
<!-- Exclude Patterns -->
<exclude-pattern>*/index.php</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/*.asset.php</exclude-pattern>
<exclude-pattern>./tests/*</exclude-pattern>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="5.6" />
<config name="testVersion" value="7.4-" />
<!-- Rules -->
<rule ref="WooCommerce-Core">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<rule ref="WooCommerce.Commenting">
<!-- It wants @since to contain defined version and does not allow just x.x.x -->
<exclude name="WooCommerce.Commenting.CommentHooks.MissingSinceVersionComment"/>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>src/*</exclude-pattern>
<exclude-pattern>bin/*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>src/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="pinterest-for-woocommerce" />
</properties>
</rule>
<rule ref="PHPCompatibility" />
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>index.asset.php</exclude-pattern>
</rule>
</ruleset>