Skip to content

Commit 64baf78

Browse files
committed
Add new sniffs
1 parent dcacf1d commit 64baf78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/WoohooLabs/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@
136136
<!-- Forbid weak comparisons -->
137137
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowEqualOperators"/>
138138

139+
<!-- Disallow useless else/elseif conditions -->
140+
<rule ref="SlevomatCodingStandard.ControlStructures.EarlyExitSniff"/>
141+
139142
<!-- Require language constructs without parentheses -->
140143
<rule ref="SlevomatCodingStandard.ControlStructures.LanguageConstructWithParentheses"/>
141144

@@ -197,6 +200,9 @@
197200
</properties>
198201
</rule>
199202

203+
<!-- Forbid whitespace after the spread operator -->
204+
<rule ref="SlevomatCodingStandard.Operators.SpreadOperatorSpacingSniff"/>
205+
200206
<!-- Forbid `list(...)` syntax -->
201207
<rule ref="SlevomatCodingStandard.PHP.ShortList"/>
202208

0 commit comments

Comments
 (0)