|
7 | 7 | <arg name="colors"/> |
8 | 8 | <arg name="extensions" value="php"/> |
9 | 9 |
|
| 10 | + <!-- Make sniff report relative --> |
| 11 | + <arg name="basepath" value="."/> |
| 12 | + |
10 | 13 | <file>examples</file> |
11 | 14 | <file>src</file> |
12 | 15 | <file>tests</file> |
13 | 16 |
|
14 | | - <exclude-pattern>*/examples/index.php</exclude-pattern> |
| 17 | + <exclude-pattern>examples/index.php</exclude-pattern> |
| 18 | + |
| 19 | + <rule ref="PhpMyAdmin"/> |
15 | 20 |
|
16 | | - <rule ref="PhpMyAdmin"> |
17 | | - <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/> |
18 | | - <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/> |
19 | | - <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/> |
20 | | - <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint"/> |
21 | | - <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"/> |
| 21 | + <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation"> |
| 22 | + <exclude-pattern>src/ShapeRecord.php</exclude-pattern> |
| 23 | + <exclude-pattern>tests/UtilTest.php</exclude-pattern> |
| 24 | + <exclude-pattern>tests/ShapeFileTest.php</exclude-pattern> |
22 | 25 | </rule> |
23 | 26 |
|
24 | | - <rule ref="SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition"/> |
25 | | - <rule ref="SlevomatCodingStandard.Functions.RequireSingleLineCall"/> |
26 | | - <rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"> |
27 | | - <properties> |
28 | | - <property name="ignoreSpacesInComment" value="true"/> |
29 | | - </properties> |
| 27 | + <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"> |
| 28 | + <severity>4</severity> |
| 29 | + </rule> |
| 30 | + <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"> |
| 31 | + <severity>4</severity> |
| 32 | + </rule> |
| 33 | + <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"> |
| 34 | + <severity>4</severity> |
30 | 35 | </rule> |
31 | 36 | </ruleset> |
0 commit comments