Translated using Weblate (Slovenian)
[phpmyadmin.git] / phpcs.xml.dist
blob50917fbb125f99f4da004925d4945e1a41247f86
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>*/build/*</exclude-pattern>
13 <exclude-pattern>*/config.inc.php</exclude-pattern>
14 <exclude-pattern>*/libraries/cache/*</exclude-pattern>
15 <exclude-pattern>*/libraries/language_stats.inc.php</exclude-pattern>
16 <exclude-pattern>*/node_modules/*</exclude-pattern>
17 <exclude-pattern>*/test/doctum-config.php</exclude-pattern>
18 <exclude-pattern>*/tmp/*</exclude-pattern>
19 <exclude-pattern>*/twig-templates/*</exclude-pattern>
20 <exclude-pattern>*/vendor/*</exclude-pattern>
21 <exclude-pattern>*/.git/*</exclude-pattern>
23 <rule ref="PhpMyAdmin"/>
25 <rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
26 <exclude-pattern>*/libraries/classes/Plugins/Transformations/*</exclude-pattern>
27 </rule>
29 <rule ref="Squiz.PHP.GlobalKeyword"/>
31 <!-- Rules that should be followed, but are not required -->
32 <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
33 <severity>4</severity>
34 </rule>
35 <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint">
36 <severity>4</severity>
37 </rule>
38 <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
39 <severity>4</severity>
40 </rule>
41 <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification">
42 <severity>4</severity>
43 </rule>
44 <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
45 <severity>4</severity>
46 </rule>
47 <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
48 <severity>4</severity>
49 </rule>
50 <rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps">
51 <severity>4</severity>
52 </rule>
53 </ruleset>