-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml.dist
35 lines (30 loc) · 1.17 KB
/
.phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ispconfig3_domainregistration">
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility"/>
<config name="testVersion" value="5.4"/>
<file>./src</file>
<arg name="extensions" value="php"/>
<arg name="basepath" value="./"/>
<rule ref="PSR2"/>
<rule ref="PSR12"/>
<!--
This rule triggers even though our testVersion is not set to PHP 7.0+, so just disable it for now
-->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>bootstrap.php</exclude-pattern>
</rule>
<!--
This rule triggers even though our testVersion is not set to PHP 7.0+, so just disable it for now
-->
<rule ref="PSR12.Properties.ConstantVisibility.NotFound">
<exclude-pattern>*</exclude-pattern>
</rule>
<!--
PHP 5.4+ is allowed in the tests/* folder because that will never be part
of a production deployment, nor does it get autoloaded besides when running
the test suite.
-->
<rule ref="PHPCompatibility">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
</ruleset>