-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathruleset.xml
More file actions
35 lines (29 loc) · 1.33 KB
/
ruleset.xml
File metadata and controls
35 lines (29 loc) · 1.33 KB
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
<?xml version="1.0"?>
<ruleset>
<rule ref="vendor/contributte/qa/ruleset.xml"/>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Contributte\Forms"/>
<element key="tests/Fixtures" value="Tests\Fixtures"/>
</property>
</properties>
</rule>
<!-- Inherited $wrappers property from DefaultFormRenderer cannot have specific type -->
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification">
<exclude-pattern>src/Rendering/*Renderer.php</exclude-pattern>
</rule>
<!-- Test fixtures need superglobals for form simulation -->
<rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<!-- Nette container extension pattern uses array-like assignment -->
<rule ref="SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation">
<exclude-pattern>src/Controls/DateTime/*Input.php</exclude-pattern>
</rule>
<!-- DateTime controls have complex inheritance requiring mixed public/protected method order -->
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
<exclude-pattern>src/Controls/DateTime/AbstractDateTimeInput.php</exclude-pattern>
</rule>
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>