Skip to content

Commit 96bad8c

Browse files
authored
Allow empty else and elseif statements when commented (#11)
1 parent 7fc5f7f commit 96bad8c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ShipMonkCodingStandard/ruleset.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<rule ref="Generic.Classes.DuplicateClassName"/>
1717
<rule ref="Generic.CodeAnalysis.EmptyStatement">
1818
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedCatch"/><!-- empty catch statements are allowed when commented -->
19+
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedElse"/><!-- empty else statements are allowed when commented -->
20+
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedElseIf"/><!-- empty elseif statements are allowed when commented -->
1921
</rule>
2022
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
2123
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>

0 commit comments

Comments
 (0)