-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
68 lines (57 loc) · 2.41 KB
/
phpcs.xml
File metadata and controls
68 lines (57 loc) · 2.41 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<ruleset name="EasyCommerce FakerPress">
<description>PHP CodeSniffer ruleset for EasyCommerce FakerPress plugin</description>
<!-- Check all PHP files in these directories -->
<file>./includes</file>
<file>./class-easycommerce-fakerpress.php</file>
<file>./easycommerce-fakerpress.php</file>
<!-- Exclude vendor and node_modules -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Use WordPress coding standards -->
<rule ref="WordPress">
<!-- Allow short array syntax -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>
<!-- Set minimum PHP version -->
<config name="minimum_supported_wp_version" value="5.0"/>
<config name="testVersion" value="7.4-"/>
<!-- Check for PHP cross-version compatibility -->
<rule ref="PHPCompatibility"/>
<!-- Show colors in output if possible -->
<arg name="colors"/>
<!-- Show progress -->
<arg value="p"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- WordPress Internationalization -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="easycommerce-fakerpress"/>
</property>
</properties>
</rule>
<!-- WordPress Naming Conventions -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="easycommerce_fakerpress"/>
<element value="EASYCOMMERCE_FAKERPRESS"/>
<element value="EasyCommerceFakerPress"/>
<element value="EasyCommerce_FakerPress"/>
</property>
</properties>
<exclude-pattern>*/templates/*</exclude-pattern> <!-- Exclude template files from global prefix check -->
</rule>
<rule ref="Squiz.Commenting.InlineComment.InvalidEndChar">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.CommentedOutCode.Found">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>