-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathphpcs.bonus.xml
More file actions
27 lines (22 loc) · 978 Bytes
/
phpcs.bonus.xml
File metadata and controls
27 lines (22 loc) · 978 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
26
27
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<file>.</file>
<exclude-pattern>./.ddev/*</exclude-pattern>
<exclude-pattern>./vendor/*</exclude-pattern>
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="75"/>
<arg value="s"/> <!-- Show sniff error codes in all reports. -->
<!--
Define rules
@see rules: https://gist.github.com/lode/1187f45ecf6146102927f04c6ba9b7ab
@see options: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties
-->
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
<rule ref="Generic.Metrics.NestingLevel"/>
<rule ref="Squiz.Operators.ComparisonOperatorUsage">
<exclude name="Squiz.Operators.ComparisonOperatorUsage.ImplicitTrue"/>
</rule>
</ruleset>