phpmyadmin/phpcs.xml.dist
William Desportes dd0f88f6d9
Forbid phpcs to sniff files that are in the .git folder
Example: `.git/refs/remotes/kamil-tekiela/Refactor-Menu.php`

Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-03-05 19:34:21 +01:00

29 lines
1.1 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/*</exclude-pattern>
<exclude-pattern>libraries/language_stats.inc.php</exclude-pattern>
<exclude-pattern>test/doctum-config.php</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tmp/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/twig-templates/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/.git/*</exclude-pattern>
<rule ref="PhpMyAdmin"/>
<!-- Rules that should be followed, but are not required -->
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
<severity>4</severity>
</rule>
</ruleset>