-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
ruleset.xml
35 lines (31 loc) · 1.33 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" encoding="UTF-8"?>
<ruleset name="Componette">
<!-- Extending ruleset -->
<rule ref="vendor/ninjify/coding-standard/contributte.xml">
<exclude name="Generic.Formatting.SpaceAfterCast.NoSpace"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfter"/>
<exclude name="Squiz.Commenting.VariableComment.Missing"/>
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator"/>
<exclude
name="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator.MultiLineTernaryOperatorNotUsed"/>
</rule>
<!-- Project rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array" value="
app/model=>App\Model,
app/modules/Front=>App\Modules\Front,
tests=>Tests
"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountAfterLastContent">
<exclude-pattern>/app/model/Database/ORM</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenDifferentAnnotationsTypes">
<exclude-pattern>/app/model/Database/ORM</exclude-pattern>
</rule>
<!-- Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>