-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
ruleset.xml
56 lines (44 loc) · 2.02 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<ruleset name="Contributte" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>Contributte</description>
<!-- Extending rulesets -->
<rule ref="./vendor/contributte/qa/ruleset-8.0.xml"/>
<!-- Specific rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Apitte"/>
<element key="tests" value="Tests"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse">
<!-- false positive; slevomat ignores attribute class names and removes their imports -->
<exclude-pattern>tests/Fixtures/Controllers/AttributeFoobarController.php</exclude-pattern>
<exclude-pattern>tests/Fixtures/Controllers/AttributeMultiController.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>*tests/Cases/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.PHP.DisallowReference">
<exclude-pattern>src/Core/Schema/Serialization/ArraySerializator.php</exclude-pattern>
<exclude-pattern>tests/Cases/OpenApi/Schema/ExamplesTest.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Classes.SuperfluousErrorNaming">
<exclude-pattern>src/Core/Dispatcher/DispatchError.php</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>*tests/Cases/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName">
<exclude-pattern>*tests/Cases/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.PartialUse">
<exclude-pattern>tests</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<exclude-pattern>tests</exclude-pattern>
</rule>
<!-- Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>