-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
25 lines (21 loc) · 915 Bytes
/
Copy pathphpcs.xml
File metadata and controls
25 lines (21 loc) · 915 Bytes
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<arg name="extensions" value="php" />
<file>.</file>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>.phan/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<!-- Use PSR 12 standard as default -->
<rule ref="PSR12">
</rule>
<!-- Forbid some functions that should not be used (directly) -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="eval" value="null"/>
<element key="create_function" value="null"/>
<element key="unserialize" value="\Piwik\Common::safe_unserialize"/>
</property>
</properties>
</rule>
</ruleset>