Skip to content

Commit 9baec4d

Browse files
authored
Merge pull request #4 from spaze/spaze/trailing-commas
Add trailing comma rules
2 parents 805c356 + 349dd0b commit 9baec4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<property name="tabIndent" value="true"/>
2323
</properties>
2424
</rule>
25+
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
2526
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
2627
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/>
2728
<rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineCondition">
@@ -75,6 +76,8 @@
7576
<property name="linesCountAfterLastUseWhenLastInClass" value="1"/>
7677
</properties>
7778
</rule>
79+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>
80+
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
7881
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
7982
<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse"/>
8083
<rule ref="SlevomatCodingStandard.Namespaces.NamespaceSpacing">

0 commit comments

Comments
 (0)