-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
44 lines (33 loc) · 1.4 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
<?xml version="1.0" encoding="utf-8"?>
<ruleset name="My coding standard">
<description>LemonPHP coding standard</description>
<!-- Display progress -->
<arg value="p"/>
<!-- Use colors in output -->
<arg name="colors"/>
<!-- Inherit rules from: PSR2-->
<rule ref="PSR2"/>
<!-- Disallow use long array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Required fix all TODO and FIXME markers -->
<!--<rule ref="Generic.Commenting.Fixme" />-->
<!--<rule ref="Generic.Commenting.Todo" />-->
<!-- Disallow use deprecated functions -->
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<!-- MUST comment if method or function has exception -->
<rule ref="Squiz.Commenting.FunctionCommentThrowTag"/>
<!-- Add space to before and after operator -->
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
<!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
<rule ref="Zend.Files.ClosingTag"/>
<!-- Exclude some PHP files, it haven't class definitions -->
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>example.php</exclude-pattern>
</rule>
<!-- Paths to check -->
<file>src</file>
<file>tests</file>
<file>example.php</file>
<!-- <exclude-pattern>tests/bootstrap.php</exclude-pattern> -->
</ruleset>