Add ChangeLog entry for #17522
[phpmyadmin.git] / phpcs.xml.dist
blobc4fc6329886d0a7497c8539544c63684478cb85a
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 <!-- Rules that should be followed, but are not required -->
30 <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
31 <severity>4</severity>
32 </rule>
33 <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint">
34 <severity>4</severity>
35 </rule>
36 <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
37 <severity>4</severity>
38 </rule>
39 <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification">
40 <severity>4</severity>
41 </rule>
42 <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
43 <severity>4</severity>
44 </rule>
45 <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
46 <severity>4</severity>
47 </rule>
48 <rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps">
49 <severity>4</severity>
50 </rule>
51 </ruleset>