-
Notifications
You must be signed in to change notification settings - Fork 17
/
phpcs.xml
69 lines (61 loc) · 3.05 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0"?>
<ruleset name="JetFormBuilder Coding Standards">
<description>JetFormBuilder dev PHP_CodeSniffer ruleset.</description>
<config name="testVersion" value="7.2-"/>
<config name="minimum_supported_wp_version" value="6.0"/>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/vendor_prefixed/*</exclude-pattern>
<exclude-pattern>assets/*</exclude-pattern>
<exclude-pattern>modules/framework/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>\.idea/*</exclude-pattern>
<exclude-pattern>\.github/*</exclude-pattern>
<exclude-pattern>*\.(js|css|scss|json)$</exclude-pattern>
<!-- Enables parallel processing when available for faster results. -->
<arg name="parallel" value="8"/>
<rule ref="PHPCompatibility"/>
<!-- Rules -->
<rule ref="WordPress">
<exclude name="Universal.Operators.DisallowShortTernary.Found"/>
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Generic.Commenting.DocComment.ShortNotCapital"/>
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedCatch"/>
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
<exclude name="Squiz.Commenting.VariableComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.WrongStyle"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment"/>
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
</rule>
<rule ref="WordPress-Extra">
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="jet-form-builder"/>
</properties>
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="edit_jet_fb_form"/>
<element value="read_jet_fb_form"/>
<element value="delete_jet_fb_form"/>
<element value="edit_jet_fb_forms"/>
<element value="edit_others_jet_fb_forms"/>
<element value="delete_jet_fb_forms"/>
<element value="publish_jet_fb_forms"/>
<element value="read_private_jet_fb_forms"/>
</property>
</properties>
</rule>
</ruleset>