forked from php-telegram-bot/example-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
26 lines (21 loc) · 869 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="php-telegram-bot-example-bot-ruleset">
<description>PHP Code Sniffer</description>
<arg value="snp"/>
<arg name="colors"/>
<arg name="parallel" value="8"/>
<arg name="encoding" value="utf-8"/>
<arg name="report-width" value="150"/>
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="PSR12"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement">
<!-- Allow empty statements for explanation comments -->
<exclude name="Generic.CodeAnalysis.EmptyStatement"/>
</rule>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing">
<!-- Allow the empty line to improve readability -->
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose"/>
</rule>
</ruleset>