Translated using Weblate (English (United Kingdom))
[phpmyadmin.git] / phpcs.xml.dist
blobb8826b3a1ce1c9a4538cb49a285e9ad7a11cc0b6
1 <?xml version="1.0"?>
2 <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
3 <!-- Show progress and sniff codes -->
4 <arg value="ps"/>
6 <arg name="cache" value=".phpcs-cache"/>
7 <arg name="colors"/>
8 <arg name="extensions" value="php"/>
10 <file>./app</file>
11 <file>./bin</file>
12 <file>./examples</file>
13 <file>./public</file>
14 <file>./src</file>
15 <file>./tests</file>
16 <file>./config.sample.inc.php</file>
18 <!-- Make sniff report relative -->
19 <arg name="basepath" value="."/>
21 <exclude-pattern>*/app/cache/*</exclude-pattern>
22 <exclude-pattern>*/app/language_stats.inc.php</exclude-pattern>
23 <exclude-pattern>*/build/*</exclude-pattern>
24 <exclude-pattern>*/config.inc.php</exclude-pattern>
25 <exclude-pattern>*/node_modules/*</exclude-pattern>
26 <exclude-pattern>*/tests/doctum-config.php</exclude-pattern>
27 <exclude-pattern>*/revision-info.php</exclude-pattern>
28 <exclude-pattern>*/tmp/*</exclude-pattern>
29 <exclude-pattern>*/twig-templates/*</exclude-pattern>
30 <exclude-pattern>*/vendor/*</exclude-pattern>
31 <exclude-pattern>*/.git/*</exclude-pattern>
33 <rule ref="PhpMyAdmin"/>
35 <rule ref="SlevomatCodingStandard.Functions.RequireSingleLineCall"/>
36 <rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces">
37 <properties>
38 <property name="ignoreSpacesInComment" value="true"/>
39 </properties>
40 </rule>
42 <rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
43 <exclude-pattern>*/src/Plugins/Transformations/*</exclude-pattern>
44 </rule>
46 <!-- Rules that should be followed, but are not required -->
47 <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
48 <severity>4</severity>
49 </rule>
50 </ruleset>