-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
43 lines (33 loc) · 1.51 KB
/
phpcs.xml
File metadata and controls
43 lines (33 loc) · 1.51 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
<?xml version="1.0"?>
<ruleset name="84EM Gravity Forms AI Plugin">
<description>PHP Coding Standards for 84EM Gravity Forms AI Plugin (WordPress with modern PHP 8 features)</description>
<!-- Scan these paths -->
<file>.</file>
<!-- Scan PHP files only -->
<arg name="extensions" value="php"/>
<!-- Show only errors, not warnings -->
<arg name="warning-severity" value="0"/>
<!-- Exclude directories -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/bin/*</exclude-pattern>
<!-- Use WordPress-Extra as base (less strict than WordPress) -->
<rule ref="WordPress-Extra">
<!-- Allow short array syntax [] -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<!-- Allow non-Yoda conditions (modern PHP style) -->
<exclude name="WordPress.PHP.YodaConditions"/>
<!-- Allow named parameters formatting -->
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
<!-- Allow inline comments without punctuation -->
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
<!-- Allow short ternaries -->
<exclude name="Universal.Operators.DisallowShortTernary"/>
</rule>
<!-- WordPress security checks -->
<rule ref="WordPress.Security"/>
</ruleset>