endtoend-test-psl/.phpcs.xml

44 lines
1.3 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PSL"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>The coding standard for PHP Standard Library.</description>
<file>src</file>
<file>tests</file>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="parallel" value="75"/>
2020-09-05 17:29:08 +02:00
<rule ref="PSR1">
<type>error</type>
</rule>
2020-09-05 17:29:08 +02:00
<rule ref="PSR2">
<type>error</type>
</rule>
2020-09-05 17:29:08 +02:00
<rule ref="PSR12">
<type>error</type>
</rule>
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<!-- Ban some functions -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="sizeof" value="count"/>
<element key="delete" value="unset"/>
<element key="print" value="echo"/>
<element key="is_null" value="null"/>
<element key="create_function" value="null"/>
2020-09-05 17:29:08 +02:00
<element key="assert" value="Psl\invariant"/>
</property>
</properties>
</rule>
</ruleset>