-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
52 lines (43 loc) · 1.49 KB
/
phpcs.xml
File metadata and controls
52 lines (43 loc) · 1.49 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
<?xml version="1.0"?>
<ruleset name="CHIP for Gravity Forms">
<description>PHPCS ruleset for CHIP for Gravity Forms plugin.</description>
<!-- What to scan -->
<file>.</file>
<!-- Only scan PHP files -->
<arg name="extensions" value="php"/>
<!-- Exclude paths -->
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/assets/*</exclude-pattern>
<exclude-pattern>/resources/*</exclude-pattern>
<exclude-pattern>/build/*</exclude-pattern>
<exclude-pattern>/dist/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<!-- Use WordPress coding standards -->
<rule ref="WordPress">
</rule>
<!-- Set minimum supported PHP version -->
<config name="minimum_supported_wp_version" value="6.3"/>
<config name="testVersion" value="7.4-"/>
<!-- Text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="chip-for-gravity-forms"/>
</property>
</properties>
</rule>
<!-- Gravity Forms addon base uses protected $_slug, $_title, etc. -->
<rule ref="PSR2.Classes.PropertyDeclaration">
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
</rule>
<!-- Plugin-registered capabilities (GF addon). -->
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="gravityforms_chip"/>
<element value="gravityforms_chip_uninstall"/>
</property>
</properties>
</rule>
</ruleset>