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 -->
6 <arg name=
"cache" value=
".phpcs-cache"/>
8 <arg name=
"extensions" value=
"php"/>
12 <exclude-pattern>libraries/cache/routes.cache.php
</exclude-pattern>
13 <exclude-pattern>test/sami-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">
23 <!-- Require PHP 7.2 -->
24 <property name=
"enableObjectTypeHint" value=
"false"/>
28 <!-- Rules that should be followed, but are not required -->
29 <rule ref=
"PSR2.Classes.PropertyDeclaration.Underscore">
30 <severity>4</severity>
32 <rule ref=
"SlevomatCodingStandard.Operators.DisallowEqualOperators">
33 <severity>4</severity>
35 <rule ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint">
36 <severity>4</severity>
38 <rule ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint">
39 <severity>4</severity>
41 <rule ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification">
42 <severity>4</severity>
44 <rule ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversablePropertyTypeHintSpecification">
45 <severity>4</severity>
47 <rule ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification">
48 <severity>4</severity>