-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruleset.xml
More file actions
59 lines (48 loc) · 2.27 KB
/
ruleset.xml
File metadata and controls
59 lines (48 loc) · 2.27 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0"?>
<ruleset name="Utilitte">
<exclude-pattern>*/tests/_output/*</exclude-pattern>
<exclude-pattern>*/tests/_support/_generated/*</exclude-pattern>
<exclude-pattern>*/tests/_data/*</exclude-pattern>
<exclude-pattern>*/tests/_tmp/*</exclude-pattern>
<exclude-pattern>*/tests/_tmp/*</exclude-pattern>
<!-- Ninjify -->
<rule ref="./ruleset-ninjify.xml">
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousSuffix" /> <!-- Ignore Abstract suffix -->
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix" /> <!-- Ignore Interface suffix -->
<exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators.DisallowedPostDecrementOperator"/>
<exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators.DisallowedPostIncrementOperator"/>
<!-- commenting -->
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment" />
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment.MultiLinePropertyComment" />
<exclude name="SlevomatCodingStandard.Functions.DisallowArrowFunction.DisallowedArrowFunction" />
<exclude name="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator.RequiredNumericLiteralSeparator" />
<exclude name="Squiz.WhiteSpace.MemberVarSpacing" /> <!-- TODO: own sniff -->
</rule>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator">
<properties>
<property name="lineLengthLimit" value="120" />
</properties>
</rule>
<!-- PHP 7.4 not supported -->
<rule ref="Squiz.Commenting.VariableComment.MissingVar">
<severity>0</severity>
</rule>
<rule ref="Squiz.Commenting.VariableComment.Missing">
<severity>0</severity>
</rule>
<!-- Tabs instead spaces -->
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
</properties>
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
<!-- Max line length -->
<rule ref="Generic.Files.LineLength">
<properties>
<property phpcs-only="true" name="lineLimit" value="120"/>
<property phpcbf-only="true" name="lineLimit" value="120"/>
</properties>
</rule>
</ruleset>