forked from contributte/apitte-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
35 lines (32 loc) · 1.21 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
<?xml version="1.0"?>
<ruleset name="Contributte">
<!-- Extending rulesets -->
<rule ref="./vendor/ninjify/coding-standard/ruleset.xml">
<exclude name="Squiz.Commenting.FunctionComment.InvalidTypeHint"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator"/>
</rule>
<!-- Specific rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array" value="
app/model=>App\Model,
app/domain=>App\Domain,
app/ui=>App\UI,
app/module=>App\Module,
tests/toolkit=>Tests\Toolkit,
tests/cases=>Tests\Cases
"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements">
<properties>
<property name="alwaysUsedPropertiesAnnotations" type="array" value="
@ORM\Column
"/>
</properties>
</rule>
<!-- Exclude folders -->
<exclude-pattern>/app/bootstrap.php</exclude-pattern>
<exclude-pattern>/tests/tmp</exclude-pattern>
<exclude-pattern>*.phtml</exclude-pattern>
</ruleset>