-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
65 lines (50 loc) · 2.06 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0"?>
<ruleset name="Tiki Manager Coding Standard">
<description>Tiki Coding Standard</description>
<!-- Paths to check -->
<file>.</file>
<!-- Exclude scripts that have PEAR classes (old code to run on PHP 5.3) -->
<exclude-pattern>./scripts/*_tar.php</exclude-pattern>
<!-- Exclude getlinux.php that does not have opening PHP tag (is executed as php -r) -->
<exclude-pattern>./src/getlinuxdistro.php</exclude-pattern>
<!-- Exclude libraries and other folders that should not contain code -->
<!-- vendor folders -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- any dot file -->
<exclude-pattern>*/\.*/*</exclude-pattern>
<!-- other directories that should not contain core code -->
<exclude-pattern>*/backup/*</exclude-pattern>
<exclude-pattern>*/cache/*</exclude-pattern>
<exclude-pattern>*/data/*</exclude-pattern>
<exclude-pattern>*/logs/*</exclude-pattern>
<exclude-pattern>*/tmp/*</exclude-pattern>
<!-- display progress -->
<arg value="p"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<!-- Check for compatibility for PHP >= 7.1 -->
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<config name="testVersion" value="7.1-"/>
<!-- Tiki Manager uses PSR-2 coding standards
reference: https://www.php-fig.org/psr/psr-2/ -->
<rule ref="PSR2"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
<!-- Change severity to be able to filter if too many lines over 120 using cli option warning-severity=5 -->
<rule ref="Generic.Files.LineLength">
<severity>4</severity>
</rule>
<!-- Exceptions to PSR-2 -->
<!-- Extra rules to improve code quality and avoid deprecated code -->
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<!--
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.Files.OneClassPerFile"/>
<rule ref="Generic.Files.OneInterfacePerFile"/>
<rule ref="Generic.Files.OneTraitPerFile"/>
<rule ref="Generic.PHP.BacktickOperator"/>
-->
</ruleset>