|
1 | | -<?xml version="1.0"?> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <ruleset name="Contributte" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> |
3 | | - <description>Contributte</description> |
| 3 | + <!-- Rulesets --> |
| 4 | + <rule ref="./vendor/contributte/qa/ruleset-8.0.xml"/> |
4 | 5 |
|
5 | | - <!-- Extending rulesets --> |
6 | | - <rule ref="./vendor/contributte/qa/ruleset-8.1.xml"/> |
7 | | - |
8 | | - <!-- Specific rules --> |
| 6 | + <!-- Rules --> |
9 | 7 | <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> |
10 | 8 | <properties> |
11 | 9 | <property name="rootNamespaces" type="array"> |
12 | 10 | <element key="src" value="Contributte\Psr7"/> |
13 | 11 | <element key="tests" value="Tests"/> |
14 | 12 | </property> |
| 13 | + <property name="extensions" type="array"> |
| 14 | + <element key="php" value="php"/> |
| 15 | + <element key="phpt" value="phpt"/> |
| 16 | + </property> |
15 | 17 | </properties> |
16 | 18 | </rule> |
17 | 19 |
|
18 | | - <rule ref="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix"> |
19 | | - <exclude name="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix"/> |
| 20 | + <rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable"> |
| 21 | + <exclude-pattern>src/**</exclude-pattern> |
| 22 | + <exclude-pattern>tests/**</exclude-pattern> |
20 | 23 | </rule> |
21 | 24 |
|
22 | | - <rule ref="SlevomatCodingStandard.Functions.DisallowEmptyFunction.EmptyFunction"> |
23 | | - <exclude-pattern>src/NullStream.php</exclude-pattern> |
| 25 | + <rule ref="SlevomatCodingStandard.Classes.SuperfluousTraitNaming.SuperfluousSuffix"> |
| 26 | + <exclude-pattern>src/**/*Trait.php</exclude-pattern> |
24 | 27 | </rule> |
25 | 28 |
|
26 | 29 | <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint"> |
27 | | - <exclude-pattern>src/Psr7RequestWrapper.php</exclude-pattern> |
28 | | - <exclude-pattern>src/Psr7ResponseWrapper.php</exclude-pattern> |
29 | | - <exclude-pattern>src/ProxyRequest.php</exclude-pattern> |
30 | | - <exclude-pattern>src/ProxyResponse.php</exclude-pattern> |
| 30 | + <exclude-pattern>src</exclude-pattern> |
31 | 31 | </rule> |
32 | 32 |
|
33 | | - <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"> |
34 | | - <exclude-pattern>src/Psr7RequestWrapper.php</exclude-pattern> |
35 | | - <exclude-pattern>src/ProxyRequest.php</exclude-pattern> |
36 | | - <exclude-pattern>src/ProxyResponse.php</exclude-pattern> |
37 | | - </rule> |
38 | | - |
39 | | - <rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable"> |
40 | | - <exclude-pattern>src/Psr7ServerRequest.php</exclude-pattern> |
41 | | - <exclude-pattern>src/Psr7ServerRequestFactory.php</exclude-pattern> |
42 | | - <exclude-pattern>tests/Cases/Psr7ServerRequestFactoryTest.php</exclude-pattern> |
43 | | - <exclude-pattern>tests/Cases/Psr7ServerRequestTest.php</exclude-pattern> |
44 | | - </rule> |
45 | | - |
46 | | - <!-- Exclude folders --> |
| 33 | + <!-- Excludes --> |
47 | 34 | <exclude-pattern>/tests/tmp</exclude-pattern> |
48 | 35 | </ruleset> |
49 | | - |
0 commit comments