phpmyadmin/phpcs.xml.dist
William Desportes fa457e6b49
Merge branch 'QA_5_0'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-08-15 15:46:44 +02:00

48 lines
1.9 KiB
XML

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<!-- Show progress and sniff codes -->
<arg value="ps"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern>libraries/cache/routes.cache.php</exclude-pattern>
<exclude-pattern>test/doctum-config.php</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tmp/*</exclude-pattern>
<exclude-pattern>*/twig-templates/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="PhpMyAdmin"/>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
<properties>
<!-- Require PHP 7.2 -->
<property name="enableObjectTypeHint" value="false"/>
</properties>
</rule>
<!-- Rules that should be followed, but are not required -->
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
<severity>4</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint">
<severity>4</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint">
<severity>4</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification">
<severity>4</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversablePropertyTypeHintSpecification">
<severity>4</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification">
<severity>4</severity>
</rule>
</ruleset>