-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
34 lines (29 loc) · 884 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="10up PHPCS">
<!-- How to scan -->
<rule ref="10up-Default" />
<!-- What to scan -->
<file>.</file>
<!-- What not to scan -->
<exclude-pattern>rector.php</exclude-pattern>
<exclude-pattern>jwt</exclude-pattern>
<!-- Options -->
<arg value="sp"/>
<arg name="colors"/>
<arg name="basepath" value="."/>
<!-- Force short array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Disallowed functions -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="eval" value="null"/>
<element key="dd" value="null"/>
<element key="var_dump" value="null"/>
<element key="write_log" value="null"/>
<element key="error_log" value="null"/>
<element key="create_function" value="null"/>
</property>
</properties>
</rule>
</ruleset>