Skip to content

Files

Latest commit

 

History

History
14 lines (7 loc) · 514 Bytes

Universal.ControlStructures.DisallowLonelyIf.md

File metadata and controls

14 lines (7 loc) · 514 Bytes

Pattern: Use of lonely if

Issue: -

Description

Disallow if statements as the only statement in an else block.

Note: This rule will not fix the indentation of the "inner" code. It is strongly recommended to run this sniff together with the Generic.WhiteSpace.ScopeIndent sniff to get the correct indentation.

Further Reading