Translated using Weblate (Slovenian)
[phpmyadmin.git] / phpcs.xml.dist
blob04ae736d814719a02734aa96deb8442013c9e11f
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>.</file>
12 <exclude-pattern>libraries/cache/*</exclude-pattern>
13 <exclude-pattern>test/doctum-config.php</exclude-pattern>
14 <exclude-pattern>*/node_modules/*</exclude-pattern>
15 <exclude-pattern>*/tmp/*</exclude-pattern>
16 <exclude-pattern>*/twig-templates/*</exclude-pattern>
17 <exclude-pattern>*/vendor/*</exclude-pattern>
19 <rule ref="PhpMyAdmin"/>
21 <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
22 <properties>
23 <!-- Require PHP 7.2 -->
24 <property name="enableObjectTypeHint" value="false"/>
25 </properties>
26 </rule>
28 <!-- Rules that should be followed, but are not required -->
29 <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
30 <severity>4</severity>
31 </rule>
32 <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint">
33 <severity>4</severity>
34 </rule>
35 <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint">
36 <severity>4</severity>
37 </rule>
38 <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification">
39 <severity>4</severity>
40 </rule>
41 <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversablePropertyTypeHintSpecification">
42 <severity>4</severity>
43 </rule>
44 <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification">
45 <severity>4</severity>
46 </rule>
47 </ruleset>