-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
46 lines (38 loc) · 1.29 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
<?xml version="1.0"?>
<ruleset name="File Upload Type Plugin">
<description>File Upload Types Coding Standards.</description>
<!-- What to scan -->
<file>.</file>
<exclude-pattern>assets/*</exclude-pattern>
<exclude-pattern>languages/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<!-- Rules: Check PHP version compatibility -->
<config name="testVersion" value="7.0-"/>
<!-- Rules: WordPress Coding Standards -->
<config name="minimum_supported_wp_version" value="5.5"/>
<!-- Rules: WPForms Coding Standards -->
<config name="multi_domains" value="true"/>
<rule ref="WPForms"/>
<rule ref="WPForms.PHP.ValidateDomain">
<properties>
<property name="file-upload-types" value="src"/>
</properties>
</rule>
<rule ref="WordPress">
<!-- PSR4 -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="complexity" value="5"/>
<property name="absoluteComplexity" value="7"/>
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="absoluteNestingLevel" value="4"/>
</properties>
</rule>
</ruleset>