-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
48 lines (41 loc) · 1.96 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>The coding standard for Stepped Form.</description>
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<file>src/</file>
<file>tests/</file>
<rule ref="PSR12">
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
</rule>
<rule ref="Generic.Files.ByteOrderMark"/>
<rule ref="WebimpressCodingStandard.PHP.ImportInternalFunction"/>
<!-- Ban some functions -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="var_dump" value="Xdebug"/>
<element key="print_r" value="Xdebug"/>
<element key="xdebug_break" value="Xdebug"/>
<element key="xdebug_call_class" value="Xdebug"/>
<element key="xdebug_call_function" value="Xdebug"/>
<element key="xdebug_call_file" value="Xdebug"/>
<element key="xdebug_call_line" value="Xdebug"/>
<element key="xdebug_code_coverage_started" value="Xdebug"/>
<element key="xdebug_dump_superglobals" value="Xdebug"/>
<element key="ini_set" value="Xdebug"/>
<element key="error_reporting" value="Xdebug"/>
<element key="exec" value="Xdebug"/>
<element key="passthru" value="Xdebug"/>
<element key="system" value="Xdebug"/>
<element key="shell_exec" value="Xdebug"/>
<element key="popen" value="Xdebug"/>
<element key="proc_open" value="Xdebug"/>
<element key="pcntl_exec" value="Xdebug"/>
</property>
</properties>
</rule>
</ruleset>